slugifying group name when checking for existence

v1.18.x
Julian Lam 11 years ago
parent 8efb930ec0
commit 3baf00208f

@ -172,6 +172,7 @@
};
Groups.exists = function(name, callback) {
name = utils.slugify(name);
db.isSetMember('groups', name, callback);
};

@ -136,7 +136,6 @@ var async = require('async'),
});
};
// Note: This method used in mentions plugin. If still unused in core as of 0.6.0, please move to mentions plugin itself.
Notifications.pushGroup = function(nid, groupName, callback) {
if (!callback) {
callback = function() {};

Loading…
Cancel
Save