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