mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-21 07:50:37 +01:00
refactor: move plugin hook methods to plugin.hooks.*
This commit is contained in:
@@ -48,7 +48,7 @@ async function notifyUids(uid, uids, type, result) {
|
||||
uids = filterTidCidIgnorers(watchStateUids, watchStates);
|
||||
uids = await user.blocks.filterUids(uid, uids);
|
||||
uids = await user.blocks.filterUids(post.topic.uid, uids);
|
||||
const data = await plugins.fireHook('filter:sockets.sendNewPostToUids', { uidsTo: uids, uidFrom: uid, type: type });
|
||||
const data = await plugins.hooks.fire('filter:sockets.sendNewPostToUids', { uidsTo: uids, uidFrom: uid, type: type });
|
||||
|
||||
post.ip = undefined;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user