mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-28 10:19:50 +01:00
fix: update post cache clearing logic to call helper function
regression from 8cf9617630
This commit is contained in:
@@ -239,7 +239,7 @@ postsAPI.purge = async function (caller, data) {
|
||||
if (!canPurge) {
|
||||
throw new Error('[[error:no-privileges]]');
|
||||
}
|
||||
require('../posts/cache').del(data.pid);
|
||||
posts.clearCachedPost(data.pid);
|
||||
await Promise.all([
|
||||
posts.purge(data.pid, caller.uid),
|
||||
require('.').activitypub.delete.note(caller, { pid: data.pid }),
|
||||
|
||||
Reference in New Issue
Block a user