Skip to content

fix(profile): incorrect "pinned post" label shown on other account - #3320

Merged
shuuji3 merged 1 commit into
elk-zone:mainfrom
nove-b:nove-b/fix/incorrect-pinned-post-other-account's-profile
Jun 29, 2025
Merged

fix(profile): incorrect "pinned post" label shown on other account#3320
shuuji3 merged 1 commit into
elk-zone:mainfrom
nove-b:nove-b/fix/incorrect-pinned-post-other-account's-profile

Conversation

@nove-b

@nove-b nove-b commented Jun 23, 2025

Copy link
Copy Markdown
Contributor

Fix for #3161

Issue

A post authored by the current user and displayed on someone else's profile page was incorrectly shown as a "pinned post," even though it wasn't actually pinned by the profile owner.

Solution

Added logic to check whether the account of the profile being viewed matches the account of the post.
This ensures that pinned posts are only shown on the author's own profile, and not on others' profiles.

This is my first pull request to this project, so I apologize in advance if I've missed any contribution guidelines.

@netlify

netlify Bot commented Jun 23, 2025

Copy link
Copy Markdown

Deploy Preview for elk-zone ready!

Name Link
🔨 Latest commit d4bddc9
🔍 Latest deploy log https://app.netlify.com/projects/elk-zone/deploys/6858d008f4fc6c0008dfbe97
😎 Deploy Preview https://deploy-preview-3320--elk-zone.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Jun 23, 2025

Copy link
Copy Markdown

Deploy Preview for elk-docs canceled.

Name Link
🔨 Latest commit d4bddc9
🔍 Latest deploy log https://app.netlify.com/projects/elk-docs/deploys/6858d00aed2e5d0008623de4

@nove-b nove-b changed the title fix:Incorrect "📌 Pinned post" label on other account's profile fix: Incorrect "📌 Pinned post" label on other account's profile Jun 23, 2025
@nove-b nove-b changed the title fix: Incorrect "📌 Pinned post" label on other account's profile fix(profile): incorrect "pinned post" label shown on other account Jun 23, 2025

@shuuji3 shuuji3 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the first PR and no need to apologize 🙂 It's perfect solution and no issue on the PR too.

I also confirmed the fix with the pinned post on the other user's timeline.

Before

Screenshot of pinned post boosted by hte other
https://deploy-preview-3319--elk-zone.netlify.app/universeodon.com/@shuuji3_dev@mastodon.social

After

Screenshot of pinned post
https://deploy-preview-3320--elk-zone.netlify.app/universeodon.com/@shuuji3_dev@mastodon.social

@shuuji3
shuuji3 added this pull request to the merge queue Jun 29, 2025
Merged via the queue into elk-zone:main with commit 548183e Jun 29, 2025
@shuuji3 shuuji3 linked an issue Jul 2, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect "📌 Pinned post" label on other account's profile

2 participants