瀏覽代碼

fix: comment edit not updating original content (#5646)

adroslice 2 年之前
父節點
當前提交
15206efc57
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      server/modules/comments/default/comment.js

+ 1 - 0
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