fdsfsd
This commit is contained in:
parent
4355583fcf
commit
788004d96a
1 changed files with 3 additions and 2 deletions
|
@ -16,8 +16,9 @@ def send_notification(uid, text, autojanny=False):
|
|||
if autojanny: author_id = AUTOJANNY_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()
|
||||
if existing: return
|
||||
if ' has gifted you ' not in text:
|
||||
existing = g.db.query(Comment.id).filter(Comment.author_id == author_id, Comment.body_html == text_html, Comment.notifiedto == uid).first()
|
||||
if existing: return
|
||||
|
||||
new_comment = Comment(author_id=author_id,
|
||||
parent_submission=None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue