mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-06 20:41:17 +01:00
ban controls on frontend, closes #4807
This commit is contained in:
@@ -60,7 +60,7 @@ module.exports = function(User) {
|
||||
db.sortedSetScores('users:banned:expire', uids, function(err, scores) {
|
||||
users = users.map(function(userObj, idx) {
|
||||
userObj.banned_until = scores[idx] || 0;
|
||||
userObj.banned_until_readable = scores[idx] ? new Date(scores[idx]).toISOString() : 'Not Banned';
|
||||
userObj.banned_until_readable = scores[idx] ? new Date(scores[idx]).toString() : 'Not Banned';
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user