mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 08:55:47 +01:00
slugifying group name when checking for existence
This commit is contained in:
@@ -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() {};
|
||||
|
||||
Reference in New Issue
Block a user