refactor: use hooks.fire

This commit is contained in:
Barış Soner Uşaklı
2021-03-11 21:43:11 -05:00
parent 8923d34ce7
commit 0d3979efd0

View File

@@ -478,7 +478,7 @@ Flags.addReport = async function (flagId, type, id, uid, reason, timestamp) {
['flags:hash', flagId, [type, id, uid].join(':')],
]);
plugins.fireHook('action:flags.addReport', { flagId, type, id, uid, reason, timestamp });
plugins.hooks.fire('action:flags.addReport', { flagId, type, id, uid, reason, timestamp });
};
Flags.exists = async function (type, id, uid) {