forked from rDrama/rDrama
master
parent
9c7f9558b1
commit
c144ea7ed2
|
@ -804,10 +804,10 @@ def unban_user(user_id, v):
|
||||||
)
|
)
|
||||||
g.db.add(ma)
|
g.db.add(ma)
|
||||||
|
|
||||||
if 'reason' in request.args:
|
if "@" in request.referrer:
|
||||||
return {"message": f"@{user.username} was unbanned!"}
|
|
||||||
else:
|
|
||||||
return redirect(user.url)
|
return redirect(user.url)
|
||||||
|
else:
|
||||||
|
return {"message": f"@{user.username} was unbanned!"}
|
||||||
|
|
||||||
@app.post("/ban_post/<post_id>")
|
@app.post("/ban_post/<post_id>")
|
||||||
@admin_level_required(3)
|
@admin_level_required(3)
|
||||||
|
|
Loading…
Reference in New Issue