From 7f0762a4c0d6bfe863292b4f318d0142586c0efb Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 29 Dec 2021 15:07:51 +0200 Subject: [PATCH] sfd --- files/routes/admin.py | 11 +++++------ files/templates/userpage.html | 10 ---------- 2 files changed, 5 insertions(+), 16 deletions(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index a6a190ef6..ae494fa2c 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -875,12 +875,11 @@ def unban_user(user_id, v): user.ban_reason = None g.db.add(user) - if request.values.get("alts"): - for x in user.alts: - x.is_banned = 0 - x.unban_utc = 0 - x.ban_evade = 0 - g.db.add(x) + for x in user.alts: + x.is_banned = 0 + x.unban_utc = 0 + x.ban_evade = 0 + g.db.add(x) send_repeatable_notification(user.id, "Your account has been reinstated. Please carefully review and abide by the [rules](/post/2510) to ensure that you don't get suspended again.") diff --git a/files/templates/userpage.html b/files/templates/userpage.html index b09d91be3..0079d29f3 100644 --- a/files/templates/userpage.html +++ b/files/templates/userpage.html @@ -229,10 +229,6 @@
-
- - -
{% else %} @@ -507,12 +503,6 @@
-
-
- - -
-
{% else %}