mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
closes #5845
This commit is contained in:
@@ -88,11 +88,6 @@ User.getUsersWithFields = function (uids, fields, uid, callback) {
|
||||
user.banned = parseInt(user.banned, 10) === 1;
|
||||
}
|
||||
|
||||
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';
|
||||
}
|
||||
|
||||
if (user.hasOwnProperty(['email:confirmed'])) {
|
||||
user['email:confirmed'] = parseInt(user['email:confirmed'], 10) === 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user