mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 17:05:51 +01:00
@@ -428,12 +428,7 @@ var async = require('async'),
|
|||||||
tasks.push(async.apply(db.setAdd, 'group:' + data.name + ':members', data.ownerUid));
|
tasks.push(async.apply(db.setAdd, 'group:' + data.name + ':members', data.ownerUid));
|
||||||
}
|
}
|
||||||
|
|
||||||
async.parallel(tasks, function(err) {
|
async.parallel(tasks, callback);
|
||||||
plugins.fireHook('action:group.create', {
|
|
||||||
name: data.name
|
|
||||||
});
|
|
||||||
callback(err);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -569,10 +564,7 @@ var async = require('async'),
|
|||||||
}, next);
|
}, next);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
], function(err) {
|
], callback);
|
||||||
plugins.fireHook('action:group.')
|
|
||||||
callback(err);
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
|
|
||||||
Groups.join = function(groupName, uid, callback) {
|
Groups.join = function(groupName, uid, callback) {
|
||||||
@@ -637,7 +629,7 @@ var async = require('async'),
|
|||||||
return callback(err);
|
return callback(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
plugins.fireHook('action:group.leave', {
|
plugins.fireHook('action:groups.leave', {
|
||||||
groupName: groupName,
|
groupName: groupName,
|
||||||
uid: uid
|
uid: uid
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user