breaking: removal of filter:post.purge

This commit is contained in:
Julian Lam
2023-12-04 14:02:31 -05:00
parent 9d8061eab9
commit c84b72fb37
2 changed files with 0 additions and 19 deletions

View File

@@ -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),