Explorar o código

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

adroslice %!s(int64=2) %!d(string=hai) anos
pai
achega
15206efc57
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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