fix 500 error

remotes/1693176582716663532/tmp_refs/heads/watchparty
Aevann1 2022-09-23 14:08:31 +02:00
parent 1de6ec7dc7
commit 4f637d9538
1 changed files with 1 additions and 1 deletions

View File

@ -707,7 +707,7 @@ def message2(v, username):
existing = g.db.query(Comment.id).filter(Comment.author_id == v.id,
Comment.sentto == user.id,
Comment.body_html == body_html,
).one_or_none()
).first()
if existing: return {"error": "Message already exists."}, 403