DTP Base provides a scalable and secure Node.js application development harness ready for production service.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

8 lines
315 B

//- Common routines for all views
-
function getUserPictureUrl (userProfile, which) {
if (!userProfile || !userProfile.picture || !userProfile.picture[which]) {
return `https://${site.domain}/img/default-member.png`;
}
return `https://${site.domain}/image/${userProfile.picture[which]._id}`;
}