From 490aeddb02c74f90cb70dcfe04758933d9c66085 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sat, 24 Dec 2022 20:59:47 +0200 Subject: [PATCH] dont shadowban alrdy shadowbanned nibbas --- files/routes/routehelpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/routehelpers.py b/files/routes/routehelpers.py index 534fde5eb..873e988b7 100644 --- a/files/routes/routehelpers.py +++ b/files/routes/routehelpers.py @@ -92,11 +92,11 @@ def check_for_alts(current:User, include_current_session=True): session["history"] = list(past_accs) g.db.flush() for u in get_alt_graph(current.id): - if u.shadowbanned and current.id not in DONT_SHADOWBAN: + if u.shadowbanned and not current.shadowbanned and current.id not in DONT_SHADOWBAN: current.shadowbanned = u.shadowbanned current.ban_reason = u.ban_reason g.db.add(current) - elif current.shadowbanned and u.id not in DONT_SHADOWBAN: + elif current.shadowbanned and not u.shadowbanned and u.id not in DONT_SHADOWBAN: u.shadowbanned = current.shadowbanned u.ban_reason = current.ban_reason g.db.add(u)