From 15206efc57cb1cae49744a87e8b5b337a99df309 Mon Sep 17 00:00:00 2001 From: adroslice Date: Sun, 2 Oct 2022 21:52:39 +0200 Subject: [PATCH] fix: comment edit not updating original content (#5646) --- server/modules/comments/default/comment.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server/modules/comments/default/comment.js b/server/modules/comments/default/comment.js index 53b05bf1..fa819c8b 100644 --- a/server/modules/comments/default/comment.js +++ b/server/modules/comments/default/comment.js @@ -126,6 +126,7 @@ module.exports = { async update ({ id, content, user }) { const renderedContent = DOMPurify.sanitize(mkdown.render(content)) await WIKI.models.comments.query().findById(id).patch({ + content, render: renderedContent }) return renderedContent