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

v1.18.x
Barış Soner Uşaklı 4 years ago
parent 7d391d4789
commit 069ac60f62

@ -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);

Loading…
Cancel
Save