Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wiki-js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
wiki-js
Commits
15206efc
Unverified
Commit
15206efc
authored
Oct 02, 2022
by
adroslice
Committed by
GitHub
Oct 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: comment edit not updating original content (#5646)
parent
274ecf4b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
comment.js
server/modules/comments/default/comment.js
+1
-0
No files found.
server/modules/comments/default/comment.js
View file @
15206efc
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment