From dcb6ef56d40cf9c0e8bf046dc9f2feab577f95b8 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 20 Aug 2023 11:17:38 +0300 Subject: [PATCH] fix --- files/helpers/alerts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: