mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-04 21:59:51 +01:00
@@ -258,7 +258,7 @@ module.exports = function (User) {
|
||||
user.banned_until = unban ? 0 : user['banned:expire'];
|
||||
user.banned_until_readable = user.banned_until && !unban ? utils.toISOString(user.banned_until) : 'Not Banned';
|
||||
if (unban) {
|
||||
await User.bans.unban(user.uid);
|
||||
await User.bans.unban(user.uid, '[[user:info.ban-expired]]');
|
||||
user.banned = false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user