remotes/1693045480750635534/spooky-22
Aevann1 2021-12-01 16:11:27 +02:00
parent 8b8ed55dac
commit 5adb30ec77
1 changed files with 2 additions and 4 deletions

View File

@ -652,11 +652,9 @@ def u_username_comments(username, v=None):
u=u,
v=v)
if hasattr(u, 'is_blocked') and u.is_blocked and (not v or v.admin_level < 2):
if v and v.admin_level < 2 and hasattr(u, 'is_blocked') and u.is_blocked:
if request.headers.get("Authorization"): return {"error": "This person is blocking you."}
else: return render_template("userpage_blocked.html",
u=u,
v=v)
else: return render_template("userpage_blocked.html", u=u, v=v)
page = int(request.values.get("page", "1"))