fix @blackjackbtz
parent
4a111df278
commit
53e7717dc9
|
@ -666,12 +666,13 @@ def message2(v, username):
|
||||||
|
|
||||||
body_html = sanitize(message)
|
body_html = sanitize(message)
|
||||||
|
|
||||||
existing = g.db.query(Comment.id).filter(Comment.author_id == v.id,
|
if not (SITE == 'rdrama.net' and message == '!withdrawall' and user.id == 12732):
|
||||||
Comment.sentto == user.id,
|
existing = g.db.query(Comment.id).filter(Comment.author_id == v.id,
|
||||||
Comment.body_html == body_html,
|
Comment.sentto == user.id,
|
||||||
).one_or_none()
|
Comment.body_html == body_html,
|
||||||
|
).one_or_none()
|
||||||
|
|
||||||
if existing: return {"error": "Message already exists."}, 403
|
if existing: return {"error": "Message already exists."}, 403
|
||||||
|
|
||||||
c = Comment(author_id=v.id,
|
c = Comment(author_id=v.id,
|
||||||
parent_submission=None,
|
parent_submission=None,
|
||||||
|
|
Loading…
Reference in New Issue