remotes/1693045480750635534/spooky-22
Aevann1 2021-08-31 19:00:57 +02:00
parent 550913d513
commit 932039dda2
2 changed files with 1 additions and 2 deletions

View File

@ -165,9 +165,7 @@ def get_comment(i, v=None, graceful=False, **kwargs):
comment=g.db.query(Comment).filter(Comment.id == i).first()
print("sex")
if not comment and not graceful: abort(404)
print("fuck")
block = g.db.query(UserBlock).filter(
or_(

View File

@ -183,6 +183,7 @@ def messagereply(v, username, id):
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}')
print("hi")
with CustomRenderer() as renderer: text_html = renderer.render(mistletoe.Document(message))
text_html = sanitize(text_html)
parent = get_comment(int(id), v=v)