mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
feat: add post to hook params
This commit is contained in:
@@ -40,7 +40,12 @@ 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.hooks.fire('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: post,
|
||||
});
|
||||
|
||||
post.ip = undefined;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user