From f1eadb9821d65537acb62baeb488aae4f850b67d Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 1 Dec 2021 16:12:55 +0200 Subject: [PATCH] fdss --- files/routes/users.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/files/routes/users.py b/files/routes/users.py index 4f69240a4..7bd649177 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -646,11 +646,9 @@ def u_username_comments(username, v=None): if request.headers.get("Authorization"): return {"error": "That userpage is private"} else: return render_template("userpage_private.html", time=int(time.time()), u=u, v=v) - if hasattr(u, 'is_blocking') and u.is_blocking and (not v or v.admin_level < 2): + if v and hasattr(u, 'is_blocking') and u.is_blocking: if request.headers.get("Authorization"): return {"error": f"You are blocking @{u.username}."} - else: return render_template("userpage_blocking.html", - u=u, - v=v) + else: return render_template("userpage_blocking.html", u=u, v=v) 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."}