From 0d3979efd043047f9c85f9846450184fd6294e08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Thu, 11 Mar 2021 21:43:11 -0500 Subject: [PATCH] refactor: use hooks.fire --- src/flags.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {