From 4ad72f0e9e008caa5b8129148675efd2ef476042 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 12 Mar 2023 14:44:16 +0200 Subject: [PATCH] remove DONT_SHADOWBAN const --- files/helpers/config/const.py | 3 --- files/routes/routehelpers.py | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/files/helpers/config/const.py b/files/helpers/config/const.py index 5d2f08429c..f4c987ea13 100644 --- a/files/helpers/config/const.py +++ b/files/helpers/config/const.py @@ -704,7 +704,6 @@ BADGE_BLACKLIST = { # only grantable by admins higher than PERMS['IGNORE_BADGE_B } NOTIFIED_USERS = {} -DONT_SHADOWBAN = {} if SITE == 'rdrama.net': NOTIFICATION_SPAM_AGE_THRESHOLD = 0.5 * 86400 @@ -788,8 +787,6 @@ if SITE == 'rdrama.net': ANTISPAM_BYPASS_IDS = {1703, 13427} - DONT_SHADOWBAN = {253,3161,11163} - GIFT_NOTIF_ID = CARP_ID POLL_THREAD = 79285 diff --git a/files/routes/routehelpers.py b/files/routes/routehelpers.py index 3f651766c4..337d5a5578 100644 --- a/files/routes/routehelpers.py +++ b/files/routes/routehelpers.py @@ -82,11 +82,11 @@ def check_for_alts(current:User, include_current_session=False): session["history"] = list(past_accs) g.db.flush() for u in get_alt_graph(current.id): - if u.shadowbanned and not current.shadowbanned and current.id not in DONT_SHADOWBAN: + if u.shadowbanned and not current.shadowbanned: current.shadowbanned = u.shadowbanned current.ban_reason = u.ban_reason g.db.add(current) - elif current.shadowbanned and not u.shadowbanned and u.id not in DONT_SHADOWBAN: + elif current.shadowbanned and not u.shadowbanned: u.shadowbanned = current.shadowbanned u.ban_reason = current.ban_reason g.db.add(u)