This commit is contained in:
Aevann1 2021-09-13 13:45:03 +02:00
parent ab46a01b53
commit bcd3252777
45 changed files with 36 additions and 39 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}')
with CustomRenderer() as renderer: text_html = renderer.render(mistletoe.Document(message))
text_html = CustomRenderer().render(mistletoe.Document(message))
text_html = sanitize(text_html, True)
new_comment = Comment(author_id=v.id,
parent_submission=None,