mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 20:45:58 +01:00
fix: #7853, dissociation on post purge
This commit is contained in:
@@ -57,6 +57,7 @@ module.exports = function (Posts) {
|
||||
deletePostFromReplies(postData),
|
||||
deletePostFromGroups(postData),
|
||||
db.sortedSetsRemove(['posts:pid', 'posts:votes', 'posts:flagged'], pid),
|
||||
Posts.uploads.dissociateAll(pid),
|
||||
]);
|
||||
plugins.fireHook('action:post.purge', { post: postData, uid: uid });
|
||||
await db.delete('post:' + pid);
|
||||
|
||||
Reference in New Issue
Block a user