Skip to content

Node.js based forum software built for the modern web

TravisCI is TOO DAMN FAST

Julian Lam0a38a783c7ab
diff --git a/src/groups.js b/src/groups.js
index 173274020d..899dfd55b7 100644
--- a/src/groups.js
+++ b/src/groups.js
@@ -459,10 +459,11 @@ var async = require('async'),
});
} else {
Groups.create(groupName, '', function(err) {
- if (err) {
+ if (err && err.message !== '[[error:group-already-exists]]') {
winston.error('[groups.join] Could not create new hidden group: ' + err.message);
return callback(err);
}
+
Groups.hide(groupName);
db.setAdd('group:' + groupName + ':members', uid, callback);
plugins.fireHook('action:groups.join', {