Skip to content

Node.js based forum software built for the modern web

closes #6448

Barış Soner Uşaklıbb13c4948d04
diff --git a/src/flags.js b/src/flags.js
index 3636f42e06..6a3c51e707 100644
--- a/src/flags.js
+++ b/src/flags.js
@@ -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;