Merge pull request #5550 from NodeBB/patch_5543

Remove duplicate slugify
v1.18.x
Julian Lam 8 years ago committed by GitHub
commit 42dc496572

@ -210,8 +210,7 @@ module.exports = function (User) {
function go() {
var username = userData.username + ' ' + num.toString(32);
var userslug = utils.slugify(username);
meta.userOrGroupExists(userslug, function (err, exists) {
meta.userOrGroupExists(username, function (err, exists) {
if (err || !exists) {
return callback(err, username);
}

Loading…
Cancel
Save