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

This commit is contained in:
Barış Soner Uşaklı
2021-03-01 19:02:00 -05:00
parent 7d391d4789
commit 069ac60f62

View File

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