From 33d7b9b3ab58382d979b93b3155a87485170fa58 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Sun, 16 Feb 2025 14:48:44 -0500 Subject: [PATCH] fix: clear parsed post cache when updating a post's attachments, #13164 --- src/posts/attachments.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/posts/attachments.js b/src/posts/attachments.js index 3683aa0de4..99aece3010 100644 --- a/src/posts/attachments.js +++ b/src/posts/attachments.js @@ -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), ]); };