diff --git a/files/routes/admin.py b/files/routes/admin.py index aac86d00f..6e99303c0 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -1062,8 +1062,7 @@ def unban_user(user_id, v): ) g.db.add(ma) - if "@" in request.referrer: return redirect(user.url) - else: return {"message": f"@{user.username} has been unbanned!"} + return {"message": f"@{user.username} has been unbanned!"} @app.post("/mute_user//") @limiter.limit("1/second;30/minute;200/hour;1000/day") diff --git a/files/templates/userpage_admintools.html b/files/templates/userpage_admintools.html index 4e02c5d5b..daadd6be4 100644 --- a/files/templates/userpage_admintools.html +++ b/files/templates/userpage_admintools.html @@ -42,25 +42,19 @@ {% endif %} {% if v.admin_level >= PERMS['USER_BAN'] %} - {% if u.is_suspended %} -
- - - -
- {% else %} -
- - - - -
- - -
- -
- {% endif %} + + +
+ + + + +
+ + +
+ +
{% endif %} {% if v.admin_level >= PERMS['USER_SHADOWBAN'] %} {% if u.shadowbanned %}