From d1e35e4afed64c425147f905594ea6342fccd043 Mon Sep 17 00:00:00 2001 From: justcool393 Date: Sun, 30 Oct 2022 02:37:31 -0500 Subject: [PATCH] fix prev commit --- 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 8824337716..6ce2fc2261 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -661,15 +661,13 @@ def u_username(username, v=None): if not u.is_visible_to(v): if g.is_api_or_xhr or request.path.endswith(".json"): abort(403, "This userpage is private") - - return render_template("userpage_private.html", u=u, v=v) + return render_template("userpage_private.html", u=u, v=v), 403 if v and hasattr(u, 'is_blocking') and u.is_blocking: if g.is_api_or_xhr or request.path.endswith(".json"): abort(403, f"You are blocking @{u.username}.") - - return render_template("userpage_blocking.html", u=u, v=v) + return render_template("userpage_blocking.html", u=u, v=v), 403 sort = request.values.get("sort", "new")