mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 23:56:04 +02:00
closes #5845
This commit is contained in:
@@ -168,6 +168,11 @@ module.exports = function (User) {
|
||||
if (user.hasOwnProperty('lastonline')) {
|
||||
user.lastonlineISO = utils.toISOString(user.lastonline) || user.joindateISO;
|
||||
}
|
||||
|
||||
if (user.hasOwnProperty('banned:expire')) {
|
||||
user.banned_until = parseInt(user['banned:expire'], 10) || 0;
|
||||
user.banned_until_readable = user.banned_until ? new Date(user.banned_until).toString() : 'Not Banned';
|
||||
}
|
||||
});
|
||||
|
||||
plugins.fireHook('filter:users.get', users, callback);
|
||||
|
||||
Reference in New Issue
Block a user