diff --git a/files/helpers/offsitementions.py b/files/helpers/offsitementions.py index 7cbdc6a34b..4b88ffb9e5 100644 --- a/files/helpers/offsitementions.py +++ b/files/helpers/offsitementions.py @@ -122,3 +122,6 @@ def notify_mentions(mentions, send_to=None, mention_str='site mention'): if send_to: notif = Notification(comment_id=new_comment.id, user_id=send_to) 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')