From 6eec00285fdd08eb932e98bd628c6fc61f5ed799 Mon Sep 17 00:00:00 2001 From: justcool393 Date: Thu, 3 Nov 2022 03:18:34 -0500 Subject: [PATCH] users: fix bug where is_following isn't set for private users --- files/routes/users.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/users.py b/files/routes/users.py index b780e9c61..d0369f02f 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -677,7 +677,7 @@ 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), 403 + return render_template("userpage_private.html", u=u, v=v, is_following=is_following), 403 if v and hasattr(u, 'is_blocking') and u.is_blocking: @@ -747,7 +747,7 @@ def u_username_comments(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), 403 + return render_template("userpage_private.html", u=u, v=v, is_following=is_following), 403 if v and hasattr(u, 'is_blocking') and u.is_blocking: if g.is_api_or_xhr or request.path.endswith(".json"):