forked from rDrama/rDrama
fix broken push notifs
parent
22051152de
commit
fbdad373f2
|
@ -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())
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue