fix broken push notifs

pull/134/head
Aevann 2023-02-24 05:28:03 +02:00
parent 22051152de
commit fbdad373f2
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -331,7 +331,7 @@ def comment(v:User):
else: notifbody = c.body
if parent_user.id != AEVANN_ID:
push_notif({parent_user.id}, title, notifbody, (c.id,posting_to_submission))
push_notif({parent_user.id}, title, notifbody, c)
vote = CommentVote(user_id=v.id,
comment_id=c.id,