adroslice
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
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 |
|
|
|