fix: clear parsed post cache when updating a post's attachments, #13164

This commit is contained in:
Julian Lam
2025-02-16 14:48:44 -05:00
parent d936d5c073
commit 33d7b9b3ab

View File

@@ -63,6 +63,7 @@ Attachments.update = async (pid, attachments) => {
await Promise.all([
db.setObjectBulk(bulkOps.hash),
db.setObjectField(`post:${pid}`, 'attachments', hashes.join(',')),
posts.clearCachedPost(pid),
]);
};