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)