diff --git a/files/routes/users.py b/files/routes/users.py index 183b2a877..77f7c9a88 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -989,13 +989,6 @@ def u_username(username, v=None): 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") or request.headers.get("xhr") or request.path.endswith(".json"): - return {"error": "This person is blocking you."}, 403 - - return render_template("userpage_blocked.html", u=u, v=v) - - sort = request.values.get("sort", "new") t = request.values.get("t", "all") try: page = max(int(request.values.get("page", 1)), 1) @@ -1086,12 +1079,6 @@ def u_username_comments(username, v=None): return {"error": f"You are blocking @{u.username}."}, 403 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") or request.headers.get("xhr") or request.path.endswith(".json"): - return {"error": "This person is blocking you."}, 403 - return render_template("userpage_blocked.html", u=u, v=v) - - try: page = max(int(request.values.get("page", "1")), 1) except: page = 1 diff --git a/files/templates/userpage_blocked.html b/files/templates/userpage_blocked.html deleted file mode 100644 index a5e4636f5..000000000 --- a/files/templates/userpage_blocked.html +++ /dev/null @@ -1,23 +0,0 @@ -{% extends "default.html" %} - -{% block pagetype %}userpage{% endblock %} - -{% block fixedMobileBarJS %} -{% endblock %} - -{% block title %} - {{u.username}} -{% endblock %} - -
-
-
- - - - -

@{{u.username}} has blocked you.

-

You can't see their profile.

-
-
-
\ No newline at end of file