forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2021-09-08 23:19:48 +02:00
parent 9c7f9558b1
commit c144ea7ed2
1 changed files with 3 additions and 3 deletions

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)