mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
fix: clear parsed post cache when updating a post's attachments, #13164
This commit is contained in:
@@ -63,6 +63,7 @@ Attachments.update = async (pid, attachments) => {
|
|||||||
await Promise.all([
|
await Promise.all([
|
||||||
db.setObjectBulk(bulkOps.hash),
|
db.setObjectBulk(bulkOps.hash),
|
||||||
db.setObjectField(`post:${pid}`, 'attachments', hashes.join(',')),
|
db.setObjectField(`post:${pid}`, 'attachments', hashes.join(',')),
|
||||||
|
posts.clearCachedPost(pid),
|
||||||
]);
|
]);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user