forked from rDrama/rDrama
fsdfsd
parent
aecd3968dc
commit
a25924c84b
|
@ -14,8 +14,8 @@ def send_notification(uid, text, autojanny=False):
|
||||||
text_html = sanitize(text_html)
|
text_html = sanitize(text_html)
|
||||||
|
|
||||||
if autojanny: author_id = AUTOJANNY_ID
|
if autojanny: author_id = AUTOJANNY_ID
|
||||||
else: author_id = NOTIFICATIONS_ID
|
else:
|
||||||
|
author_id = NOTIFICATIONS_ID
|
||||||
existing = g.db.query(Comment.id).filter(Comment.author_id == author_id, Comment.body_html == text_html, Comment.notifiedto == uid).first()
|
existing = g.db.query(Comment.id).filter(Comment.author_id == author_id, Comment.body_html == text_html, Comment.notifiedto == uid).first()
|
||||||
if existing: abort(403)
|
if existing: abort(403)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue