mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 20:45:58 +01:00
closes #6314
This commit is contained in:
@@ -648,7 +648,10 @@ Flags.notify = function (flagObj, uid, callback) {
|
||||
async.waterfall([
|
||||
async.apply(posts.getCidByPid, flagObj.targetId),
|
||||
function (cid, next) {
|
||||
groups.getMembers('cid:' + cid + ':privileges:moderate', 0, -1, next);
|
||||
groups.getMembersOfGroups(['cid:' + cid + ':privileges:moderate', 'cid:' + cid + ':privileges:groups:moderate'], next);
|
||||
},
|
||||
function (members, next) {
|
||||
next(null, _.flatten(members));
|
||||
},
|
||||
], next);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user