mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-20 03:11:57 +01:00
breaking: removal of filter:post.purge
This commit is contained in:
@@ -63,10 +63,6 @@ module.exports = function (Posts) {
|
||||
p.cid = tidToTopic[p.tid] && tidToTopic[p.tid].cid;
|
||||
});
|
||||
|
||||
// deprecated hook
|
||||
await Promise.all(postData.map(p => plugins.hooks.fire('filter:post.purge', { post: p, pid: p.pid, uid: uid })));
|
||||
|
||||
// new hook
|
||||
await plugins.hooks.fire('filter:posts.purge', {
|
||||
posts: postData,
|
||||
pids: postData.map(p => p.pid),
|
||||
|
||||
Reference in New Issue
Block a user