diff --git a/src/groups.js b/src/groups.js index 1c528a6855..b16f386984 100644 --- a/src/groups.js +++ b/src/groups.js @@ -172,6 +172,7 @@ }; Groups.exists = function(name, callback) { + name = utils.slugify(name); db.isSetMember('groups', name, callback); }; diff --git a/src/notifications.js b/src/notifications.js index 4652af0c61..1df466629f 100644 --- a/src/notifications.js +++ b/src/notifications.js @@ -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() {};