From fbdad373f26790096608743258e137f99628d6e5 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 24 Feb 2023 05:28:03 +0200 Subject: [PATCH] fix broken push notifs --- files/helpers/actions.py | 4 ++-- files/routes/comments.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/files/helpers/actions.py b/files/helpers/actions.py index 4ec9877f0..8b2d7940b 100644 --- a/files/helpers/actions.py +++ b/files/helpers/actions.py @@ -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()) diff --git a/files/routes/comments.py b/files/routes/comments.py index 8ebb71c7f..84127c54f 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -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,