From 0b1f1662116b5cd014cb71da31774f6a83cc6fd4 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 22 Nov 2022 17:44:16 +0200 Subject: [PATCH] remove "alts" checkbox for shadowbanning since shadowbans propagate anway via check_for_alts() --- files/routes/admin.py | 7 ------- files/templates/userpage/admintools.html | 4 ---- 2 files changed, 11 deletions(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index eddded6a2..278ddb4f7 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -881,13 +881,6 @@ def shadowban(user_id, v): user.ban_reason = reason g.db.add(user) - if request.values.get("alts"): - for alt in user.alts: - if alt.admin_level: continue - alt.shadowbanned = v.username - alt.ban_reason = reason - g.db.add(alt) - ma = ModAction( kind="shadowban", user_id=v.id, diff --git a/files/templates/userpage/admintools.html b/files/templates/userpage/admintools.html index 68fdbde02..0e21d80fd 100644 --- a/files/templates/userpage/admintools.html +++ b/files/templates/userpage/admintools.html @@ -61,10 +61,6 @@
-
- - -
{% endif %}