forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2022-01-06 17:07:56 +02:00
parent d55d465a85
commit cfd95232de
1 changed files with 2 additions and 2 deletions

View File

@ -419,7 +419,7 @@ def message2(v, username):
existing = g.db.query(Comment.id).filter(Comment.author_id == v.id,
Comment.sentto == user.id,
Comment.body_html == text_html,
).one_or_none()
).first()
if existing: return redirect('/notifications?messages=true')
new_comment = Comment(author_id=v.id,
@ -487,7 +487,7 @@ def message3(v, username):
existing = g.db.query(Comment.id).filter(Comment.author_id == v.id,
Comment.sentto == user.id,
Comment.body_html == text_html,
).one_or_none()
).first()
if existing: return {"error": "Message already exists."}, 403