forked from rDrama/rDrama
give push notifs for personal reddit mentions
parent
5d6cb1ba46
commit
6f981a58b8
|
@ -122,3 +122,6 @@ def notify_mentions(mentions, send_to=None, mention_str='site mention'):
|
||||||
if send_to:
|
if send_to:
|
||||||
notif = Notification(comment_id=new_comment.id, user_id=send_to)
|
notif = Notification(comment_id=new_comment.id, user_id=send_to)
|
||||||
g.db.add(notif)
|
g.db.add(notif)
|
||||||
|
|
||||||
|
g.db.flush()
|
||||||
|
push_notif({send_to}, f'New mention of you on reddit', new_comment.body, f'{SITE_FULL}/comment/{new_comment.id}?read=true#context')
|
||||||
|
|
Loading…
Reference in New Issue