Skip to content

Second attempt at hiding unapproved projects on profile pages - #2639

Merged
NadaIsAvailable merged 8 commits into
devfrom
mel-unapproved-2
Aug 7, 2026
Merged

Second attempt at hiding unapproved projects on profile pages#2639
NadaIsAvailable merged 8 commits into
devfrom
mel-unapproved-2

Conversation

@mel8978

@mel8978 mel8978 commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

Hopefully shouldn't show the project to everyone after someone joins Closes: #2405

Hopefully shouldn't show the project to everyone after someone joins
Closes: #2405
@mel8978 mel8978 changed the title Second attempt at this Second attempt at hiding unapproved projects on profile pages Aug 6, 2026

@NadaIsAvailable NadaIsAvailable left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

now i see my own projects and likes in everyone's profile page

@mel8978

mel8978 commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator Author

Alright back to the grind

@mel8978

mel8978 commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator Author

Alright should be fixed

@mel8978
mel8978 requested a review from NadaIsAvailable August 6, 2026 19:49

@NadaIsAvailable NadaIsAvailable left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

was passing the wrong user id (the current display user profile's user id) so no matter who was viewing, they could see all projects.

also const isOwnProfile = userID > 0 && data.userId === userID; was always false, although it looks correct. so instead of checking again, just use the result to set IsUsersProfile from above.

@mel8978

mel8978 commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks for the feedback, hopefully this time I'll finally finish it properly 😭

@NadaIsAvailable

NadaIsAvailable commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the feedback, hopefully this time I'll finally finish it properly 😭

u r fine now, i pushed the changes when i was debugging it ;)

@mel8978

mel8978 commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator Author

oh ok thanks a bunch

@NadaIsAvailable
NadaIsAvailable merged commit f7658bf into dev Aug 7, 2026
1 check passed
@NadaIsAvailable
NadaIsAvailable deleted the mel-unapproved-2 branch August 7, 2026 16:22
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.

Hide unreviewed projects from people on your user page

3 participants