forked from MarseyWorld/MarseyWorld
fds
parent
d55d465a85
commit
cfd95232de
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue