forked from rDrama/rDrama
1
0
Fork 0

Fix shadowbanned 404 on own profile.

master
Snakes 2022-06-16 20:06:00 -04:00
parent 3411381442
commit 9b17bb1cfe
1 changed files with 1 additions and 1 deletions

View File

@ -914,7 +914,7 @@ def u_username(username, v=None):
if request.headers.get("Authorization") or request.headers.get("xhr"): return {"error": f"That username is reserved for: {u.reserved}"}
return render_template("userpage_reserved.html", u=u, v=v)
if u.shadowbanned and not (v and v.admin_level >= 2):
if u.shadowbanned and not (v and v.admin_level >= 2) and not v.id == u.id:
abort(404)
if v and v.id not in (u.id,DAD_ID) and (u.patron or u.admin_level > 1):