diff --git a/files/helpers/alerts.py b/files/helpers/alerts.py index 62c4fbb80..bb2ab08fe 100644 --- a/files/helpers/alerts.py +++ b/files/helpers/alerts.py @@ -215,7 +215,7 @@ def NOTIFY_USERS(text, v, oldtext=None, ghost=False, log_cost=None, followers_pi def push_notif(uids, title, body, url_or_comment): - if g.v.shadowbanned: + if hasattr(g, 'v') and g.v and g.v.shadowbanned: return if VAPID_PUBLIC_KEY == DEFAULT_CONFIG_VALUE: