Skip to content

Node.js based forum software built for the modern web

feat: add uid of user who created flag to action:flags.create

Barış Soner Uşaklı069ac60f62fe
diff --git a/src/flags.js b/src/flags.js
index 28f5733794..60e3654040 100644
--- a/src/flags.js
+++ b/src/flags.js
@@ -745,6 +745,7 @@ Flags.notify = async function (flagObj, uid) {
plugins.hooks.fire('action:flags.create', {
flag: flagObj,
+ uid: uid,
});
uids = uids.filter(_uid => parseInt(_uid, 10) !== parseInt(uid, 10));
await notifications.push(notifObj, uids);