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

v1.18.x
Julian Lam 9 years ago
parent a2b0576b79
commit 37b1d1a050

@ -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});

Loading…
Cancel
Save