|
|
@ -59,7 +59,7 @@ helpers.getUserDataByUserSlug = function(userslug, callerUID, callback) {
|
|
|
|
|
|
|
|
|
|
|
|
userData.joindateISO = utils.toISOString(userData.joindate);
|
|
|
|
userData.joindateISO = utils.toISOString(userData.joindate);
|
|
|
|
userData.lastonlineISO = utils.toISOString(userData.lastonline || userData.joindate);
|
|
|
|
userData.lastonlineISO = utils.toISOString(userData.lastonline || userData.joindate);
|
|
|
|
userData.age = userData.birthday ? Math.floor((new Date().getTime() - new Date(userData.birthday).getTime()) / 31536000000) : '';
|
|
|
|
userData.age = Math.max(0, userData.birthday ? Math.floor((new Date().getTime() - new Date(userData.birthday).getTime()) / 31536000000) : 0);
|
|
|
|
|
|
|
|
|
|
|
|
if (!(isAdmin || self || (userData.email && userSettings.showemail))) {
|
|
|
|
if (!(isAdmin || self || (userData.email && userSettings.showemail))) {
|
|
|
|
userData.email = '';
|
|
|
|
userData.email = '';
|
|
|
|