Node.js based forum software built for the modern web
change if
Barış Soner Uşaklı3ed856f587c2
diff --git a/src/user/bans.js b/src/user/bans.jsindex e2cf2193b3..3307232d6e 100644--- a/src/user/bans.js+++ b/src/user/bans.js@@ -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 {