Skip to content

Node.js based forum software built for the modern web

refactor: use hooks.fire

Barış Soner Uşaklı0d3979efd043
diff --git a/src/flags.js b/src/flags.js
index 3a8e88b3bd..46674bff02 100644
--- a/src/flags.js
+++ b/src/flags.js
@@ -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) {