mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 04:25:55 +01:00
refactor: move plugin hook methods to plugin.hooks.*
This commit is contained in:
@@ -19,7 +19,7 @@ module.exports = function (Messaging) {
|
||||
message: messageObj,
|
||||
uids: uids,
|
||||
};
|
||||
data = await plugins.fireHook('filter:messaging.notify', data);
|
||||
data = await plugins.hooks.fire('filter:messaging.notify', data);
|
||||
if (!data || !data.uids || !data.uids.length) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user