remotes/1693045480750635534/spooky-22
Aevann1 2021-11-24 00:44:16 +02:00
parent 14e30aad3d
commit 0ff74da5b0
1 changed files with 4 additions and 1 deletions

View File

@ -14,7 +14,10 @@ def send_notification(uid, text, autojanny=False):
text_html = sanitize(text_html)
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()
if existing: return
new_comment = Comment(author_id=author_id,
parent_submission=None,