remove DONT_SHADOWBAN const

pull/139/head
Aevann 2023-03-12 14:44:16 +02:00
parent cefc6e945b
commit 4ad72f0e9e
2 changed files with 2 additions and 5 deletions

View File

@ -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

View File

@ -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)