gfgf
This commit is contained in:
parent
b3bc254754
commit
8838075b26
1 changed files with 3 additions and 1 deletions
|
@ -108,7 +108,9 @@ def messagereply(v, username, id):
|
||||||
Comment.sentto == user.id,
|
Comment.sentto == user.id,
|
||||||
CommentAux.body == message,
|
CommentAux.body == message,
|
||||||
).options(contains_eager(Comment.comment_aux)).first()
|
).options(contains_eager(Comment.comment_aux)).first()
|
||||||
if existing: return redirect(f'/notifications?messages=true#comment-{existing.id}')
|
if existing:
|
||||||
|
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))
|
with CustomRenderer() as renderer: text_html = renderer.render(mistletoe.Document(message))
|
||||||
text_html = sanitize(text_html)
|
text_html = sanitize(text_html)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue