refactor: use hooks.fire

v1.18.x
Barış Soner Uşaklı 4 years ago
parent 8923d34ce7
commit 0d3979efd0

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

Loading…
Cancel
Save