2
0
Эх сурвалжийг харах

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

adroslice 2 жил өмнө
parent
commit
15206efc57

+ 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