mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-04 11:31:23 +01:00
re: #4807, fixed issue where an unban would still have the user listed in the temp ban sorted set
This commit is contained in:
@@ -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});
|
||||
|
||||
Reference in New Issue
Block a user