|
|
@ -64,12 +64,14 @@ helpers.getUserDataByUserSlug = function(userslug, callerUID, callback) {
|
|
|
|
userData.lastonlineISO = utils.toISOString(userData.lastonline || userData.joindate);
|
|
|
|
userData.lastonlineISO = utils.toISOString(userData.lastonline || userData.joindate);
|
|
|
|
userData.age = Math.max(0, userData.birthday ? Math.floor((new Date().getTime() - new Date(userData.birthday).getTime()) / 31536000000) : 0);
|
|
|
|
userData.age = Math.max(0, userData.birthday ? Math.floor((new Date().getTime() - new Date(userData.birthday).getTime()) / 31536000000) : 0);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
userData.emailClass = 'hide';
|
|
|
|
|
|
|
|
|
|
|
|
if (!(isAdmin || isGlobalModerator || self || (userData.email && userSettings.showemail))) {
|
|
|
|
if (!(isAdmin || isGlobalModerator || self || (userData.email && userSettings.showemail))) {
|
|
|
|
userData.email = '';
|
|
|
|
userData.email = '';
|
|
|
|
|
|
|
|
} else if (!userSettings.showemail) {
|
|
|
|
|
|
|
|
userData.emailClass = '';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
userData.emailClass = (self && !userSettings.showemail) ? '' : 'hide';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!isAdmin && !isGlobalModerator && !self && !userSettings.showfullname) {
|
|
|
|
if (!isAdmin && !isGlobalModerator && !self && !userSettings.showfullname) {
|
|
|
|
userData.fullname = '';
|
|
|
|
userData.fullname = '';
|
|
|
|
}
|
|
|
|
}
|
|
|
|