From a0f5cc8dfb69e94a0f3c72e6697401c18801d8d5 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 10 Dec 2022 17:01:58 +0200 Subject: [PATCH] allow ppl to see and post on walls of private profiles (per poll) --- files/routes/users.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/files/routes/users.py b/files/routes/users.py index 578dda626..7afcce757 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -753,11 +753,6 @@ def u_username_wall(v:Optional[User], username:str): is_following = v and u.has_follower(v) - if not u.is_visible_to(v): - if g.is_api_or_xhr or request.path.endswith(".json"): - abort(403, f"@{u.username}'s userpage is private") - return render_template("userpage/private.html", u=u, v=v, is_following=is_following), 403 - if v and v.id != u.id: g.db.flush() view = g.db.query(ViewerRelationship).filter_by(viewer_id=v.id, user_id=u.id).one_or_none()