This commit is contained in:
Aevann1 2021-09-13 13:56:23 +02:00
parent 81b22840cc
commit 1ba76e5d5e
3 changed files with 26 additions and 3 deletions

View file

@ -256,7 +256,7 @@ def messagereply(v):
if existing.parent_comment_id: return redirect(f'/notifications?messages=true#comment-{existing.parent_comment_id}')
else: return redirect(f'/notifications?messages=true#comment-{existing.id}')
text_html = mistletoe.Document(message)
text_html = Renderer().render(mistletoe.Document(message))
text_html = sanitize(text_html, True)
new_comment = Comment(author_id=v.id,
parent_submission=None,