mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
closes #1728
This commit is contained in:
@@ -50,6 +50,9 @@ SocketUser.increaseViewCount = function(socket, uid, callback) {
|
||||
};
|
||||
|
||||
SocketUser.search = function(socket, username, callback) {
|
||||
if (!socket.uid) {
|
||||
return callback(new Error('[[error:not-logged-in]]'));
|
||||
}
|
||||
user.search(username, callback);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user