my_posts: owner-posts pane title @<handle>'s PostsPosts by Me — symmetrises w. the right pane's Posts by Others (both panes now read as point-of-view labels rather than one identity-stamped + one generic), and drops the @<handle> reveal from a screen the owner alone visits (handle is already in the navbar avatar tooltip); handle = owner.username or owner.email derivation goes w. it since nothing else in the view referenced it

Code architected by Disco DeDisco <discodedisco@outlook.com>
Git commit message Co-Authored-By:
Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Disco DeDisco
2026-05-12 21:01:59 -04:00
parent 4b47dabaf0
commit c64d7b9534

View File

@@ -320,10 +320,9 @@ def my_posts(request, user_id):
return redirect("/") return redirect("/")
if request.user.id != owner.id: if request.user.id != owner.id:
return HttpResponseForbidden() return HttpResponseForbidden()
handle = owner.username or owner.email
return render(request, "apps/billboard/my_posts.html", { return render(request, "apps/billboard/my_posts.html", {
"owner": owner, "owner": owner,
"owner_posts_title": f"@{handle}'s Posts", "owner_posts_title": "Posts by Me",
"others_posts_title": "Posts by Others", "others_posts_title": "Posts by Others",
"page_class": "page-billposts", "page_class": "page-billposts",
}) })