This commit is contained in:
Aevann1 2021-09-08 23:19:48 +02:00
parent f63186937a
commit a136cbf5d8

View file

@ -804,10 +804,10 @@ def unban_user(user_id, v):
)
g.db.add(ma)
if 'reason' in request.args:
return {"message": f"@{user.username} was unbanned!"}
else:
if "@" in request.referrer:
return redirect(user.url)
else:
return {"message": f"@{user.username} was unbanned!"}
@app.post("/ban_post/<post_id>")
@admin_level_required(3)