add lastonlineISO to user

v1.18.x
pichalite 9 years ago
parent 4b40e1476a
commit 55b78827fe

@ -116,6 +116,7 @@ var async = require('async'),
user.administrator = results.isAdmin[index]; user.administrator = results.isAdmin[index];
user.banned = parseInt(user.banned, 10) === 1; user.banned = parseInt(user.banned, 10) === 1;
user['email:confirmed'] = parseInt(user['email:confirmed'], 10) === 1; user['email:confirmed'] = parseInt(user['email:confirmed'], 10) === 1;
user.lastonlineISO = utils.toISOString(user.lastonline);
} }
}); });
plugins.fireHook('filter:userlist.get', {users: results.userData, uid: uid}, next); plugins.fireHook('filter:userlist.get', {users: results.userData, uid: uid}, next);

Loading…
Cancel
Save