From c43e4c0f7de7d8c84854690ad0a84f1d9e95a50b Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 4 Oct 2023 22:45:18 +0300 Subject: [PATCH] same as last commit --- files/helpers/alerts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/helpers/alerts.py b/files/helpers/alerts.py index 62baec7134..e406a3e389 100644 --- a/files/helpers/alerts.py +++ b/files/helpers/alerts.py @@ -31,7 +31,7 @@ def create_comment(text_html): def send_repeatable_notification(uid, text): if uid in BOT_IDs: return - if not (hasattr(g, 'v') and g.v and v.shadowbanned) or g.db.query(User.admin_level).filter_by(id=uid).one()[0] >= PERMS['USER_SHADOWBAN']: + if not (hasattr(g, 'v') and g.v and g.v.shadowbanned) or g.db.query(User.admin_level).filter_by(id=uid).one()[0] >= PERMS['USER_SHADOWBAN']: return text_html = sanitize(text, blackjack="notification") @@ -57,7 +57,7 @@ def send_repeatable_notification(uid, text): def send_notification(uid, text): if uid in BOT_IDs: return - if not (hasattr(g, 'v') and g.v and v.shadowbanned) or g.db.query(User.admin_level).filter_by(id=uid).one()[0] >= PERMS['USER_SHADOWBAN']: + if not (hasattr(g, 'v') and g.v and g.v.shadowbanned) or g.db.query(User.admin_level).filter_by(id=uid).one()[0] >= PERMS['USER_SHADOWBAN']: return cid = notif_comment(text)