mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +01:00
closes #6448
This commit is contained in:
@@ -689,7 +689,13 @@ Flags.notify = function (flagObj, uid, callback) {
|
||||
plugins.fireHook('action:flags.create', {
|
||||
flag: flagObj,
|
||||
});
|
||||
notifications.push(notification, results.admins.concat(results.moderators).concat(results.globalMods), callback);
|
||||
|
||||
var uids = results.admins.concat(results.moderators).concat(results.globalMods);
|
||||
uids = uids.filter(function (_uid) {
|
||||
return parseInt(_uid, 10) !== parseInt(uid, 10);
|
||||
});
|
||||
|
||||
notifications.push(notification, uids, callback);
|
||||
});
|
||||
});
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user