give push notifs for zozbot and lpb replies

pull/134/head
Aevann 2023-02-24 03:57:10 +02:00
parent 6755cbf28a
commit cc1c7d4ab5
1 changed files with 4 additions and 0 deletions

View File

@ -265,6 +265,8 @@ def execute_zozbot(c:Comment, level:int, post_target:post_target_type, v):
post_target.comment_count += 3
g.db.add(post_target)
g.db.flush()
push_notif({v.id}, f'New reply by @zozbot', "zoz", (c2.id,posting_to_submission))
def execute_longpostbot(c:Comment, level:int, body, body_html, post_target:post_target_type, v:User):
if SITE_NAME != 'rDrama': return
@ -308,6 +310,8 @@ def execute_longpostbot(c:Comment, level:int, body, body_html, post_target:post_
post_target.comment_count += 3
g.db.add(post_target)
g.db.flush()
push_notif({v.id}, f'New reply by @longpostbot', c2.body, (c2.id,posting_to_submission))
def execute_antispam_submission_check(title, v, url):
now = int(time.time())