Skip to content

Node.js based forum software built for the modern web

re: #4807, fixed issue where an unban would still have the user listed in the temp ban sorted set

Julian Lam37b1d1a05095
diff --git a/src/user/admin.js b/src/user/admin.js
index 59ec0e0979..e2cb88a616 100644
--- a/src/user/admin.js
+++ b/src/user/admin.js
@@ -95,7 +95,7 @@ module.exports = function(User) {
User.setUserField(uid, 'banned', 0, next);
},
function (next) {
- db.sortedSetRemove('users:banned', uid, next);
+ db.sortedSetsRemove(['users:banned', 'users:banned:expire'], uid, next);
},
function (next) {
plugins.fireHook('action:user.unbanned', {uid: uid});