mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-05 12:01:17 +01:00
change if
This commit is contained in:
@@ -30,7 +30,7 @@ module.exports = function (User) {
|
||||
async.apply(db.sortedSetAdd, 'uid:' + uid + ':bans', now, until),
|
||||
];
|
||||
|
||||
if (until > 0 && now < until) {
|
||||
if (until > now) {
|
||||
tasks.push(async.apply(db.sortedSetAdd, 'users:banned:expire', until, uid));
|
||||
tasks.push(async.apply(User.setUserField, uid, 'banned:expire', until));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user