mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-17 03:01:08 +01:00
closes #6773
This commit is contained in:
committed by
GitHub
parent
06bd4892ce
commit
089bf5d8bb
@@ -30,6 +30,7 @@ module.exports = function (SocketUser) {
|
||||
uid: socket.uid,
|
||||
targetUid: uid,
|
||||
ip: socket.ip,
|
||||
reason: data.reason || undefined,
|
||||
}, next);
|
||||
},
|
||||
function (next) {
|
||||
@@ -38,6 +39,7 @@ module.exports = function (SocketUser) {
|
||||
ip: socket.ip,
|
||||
uid: uid,
|
||||
until: data.until > 0 ? data.until : undefined,
|
||||
reason: data.reason || undefined,
|
||||
});
|
||||
next();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user