mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
user fixes
This commit is contained in:
@@ -5,11 +5,7 @@ var user = require('../user'),
|
||||
|
||||
SocketUser.exists = function(socket, data, callback) {
|
||||
if (data && data.username) {
|
||||
user.exists(utils.slugify(data.username), function(exists) {
|
||||
socket.emit('user.exists', {
|
||||
exists: exists
|
||||
});
|
||||
});
|
||||
user.exists(utils.slugify(data.username), callback);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user