mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
closes #4046
This commit is contained in:
@@ -29,6 +29,7 @@ var async = require('async'),
|
||||
|
||||
/* Assorted */
|
||||
Meta.userOrGroupExists = function(slug, callback) {
|
||||
slug = utils.slugify(slug);
|
||||
async.parallel([
|
||||
async.apply(user.existsBySlug, slug),
|
||||
async.apply(groups.existsBySlug, slug)
|
||||
|
||||
@@ -25,7 +25,7 @@ require('./user/picture')(SocketUser);
|
||||
|
||||
SocketUser.exists = function(socket, data, callback) {
|
||||
if (data && data.username) {
|
||||
meta.userOrGroupExists(utils.slugify(data.username), callback);
|
||||
meta.userOrGroupExists(data.username, callback);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user