diff --git a/files/helpers/alerts.py b/files/helpers/alerts.py index 6e7e6ec64..e5215a810 100644 --- a/files/helpers/alerts.py +++ b/files/helpers/alerts.py @@ -191,6 +191,8 @@ def push_notif(uids, title, body, url_or_comment): if isinstance(url_or_comment, Comment): c = url_or_comment + if c.is_banned: return + if c.wall_user_id: url = f'{SITE_FULL}/@{c.wall_user.username}/wall/comment/{c.id}?read=true#context' else: