mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
feat: add uid of user who created flag to action:flags.create
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user