mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 09:06:15 +01:00
refactor: use hooks.fire
This commit is contained in:
@@ -478,7 +478,7 @@ Flags.addReport = async function (flagId, type, id, uid, reason, timestamp) {
|
|||||||
['flags:hash', flagId, [type, id, uid].join(':')],
|
['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) {
|
Flags.exists = async function (type, id, uid) {
|
||||||
|
|||||||
Reference in New Issue
Block a user