forked from rDrama/rDrama
remove DONT_SHADOWBAN const
parent
cefc6e945b
commit
4ad72f0e9e
|
@ -704,7 +704,6 @@ BADGE_BLACKLIST = { # only grantable by admins higher than PERMS['IGNORE_BADGE_B
|
||||||
}
|
}
|
||||||
|
|
||||||
NOTIFIED_USERS = {}
|
NOTIFIED_USERS = {}
|
||||||
DONT_SHADOWBAN = {}
|
|
||||||
|
|
||||||
if SITE == 'rdrama.net':
|
if SITE == 'rdrama.net':
|
||||||
NOTIFICATION_SPAM_AGE_THRESHOLD = 0.5 * 86400
|
NOTIFICATION_SPAM_AGE_THRESHOLD = 0.5 * 86400
|
||||||
|
@ -788,8 +787,6 @@ if SITE == 'rdrama.net':
|
||||||
|
|
||||||
ANTISPAM_BYPASS_IDS = {1703, 13427}
|
ANTISPAM_BYPASS_IDS = {1703, 13427}
|
||||||
|
|
||||||
DONT_SHADOWBAN = {253,3161,11163}
|
|
||||||
|
|
||||||
GIFT_NOTIF_ID = CARP_ID
|
GIFT_NOTIF_ID = CARP_ID
|
||||||
|
|
||||||
POLL_THREAD = 79285
|
POLL_THREAD = 79285
|
||||||
|
|
|
@ -82,11 +82,11 @@ def check_for_alts(current:User, include_current_session=False):
|
||||||
session["history"] = list(past_accs)
|
session["history"] = list(past_accs)
|
||||||
g.db.flush()
|
g.db.flush()
|
||||||
for u in get_alt_graph(current.id):
|
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.shadowbanned = u.shadowbanned
|
||||||
current.ban_reason = u.ban_reason
|
current.ban_reason = u.ban_reason
|
||||||
g.db.add(current)
|
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.shadowbanned = current.shadowbanned
|
||||||
u.ban_reason = current.ban_reason
|
u.ban_reason = current.ban_reason
|
||||||
g.db.add(u)
|
g.db.add(u)
|
||||||
|
|
Loading…
Reference in New Issue