Skip to content

Node.js based forum software built for the modern web

breaking: removal of `filter:post.purge`

Julian Lamdf5c1a938de3
diff --git a/src/plugins/hooks.js b/src/plugins/hooks.js
index 6dfa1cc21d..483a0fd450 100644
--- a/src/plugins/hooks.js
+++ b/src/plugins/hooks.js
@@ -8,11 +8,6 @@ const als = require('../als');
const Hooks = module.exports;
Hooks._deprecated = new Map([
- ['action:post.purge', {
- new: 'action:posts.purge',
- since: 'v1.19.6',
- until: 'v2.1.0',
- }],
['filter:user.verify.code', {
new: 'filter:user.verify',
since: 'v2.2.0',
diff --git a/src/posts/delete.js b/src/posts/delete.js
index 94c3b4cee2..5668ac3750 100644
--- a/src/posts/delete.js
+++ b/src/posts/delete.js
@@ -86,10 +86,6 @@ module.exports = function (Posts) {
await resolveFlags(postData, uid);
- // deprecated hook
- Promise.all(postData.map(p => plugins.hooks.fire('action:post.purge', { post: p, uid: uid })));
-
- // new hook
plugins.hooks.fire('action:posts.purge', { posts: postData, uid: uid });
await db.deleteAll(postData.map(p => `post:${p.pid}`));