Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't hide self in top even if hidden #905

Merged
merged 4 commits into from
Mar 14, 2024
Merged

Don't hide self in top even if hidden #905

merged 4 commits into from
Mar 14, 2024

Conversation

ekzyis
Copy link
Member

@ekzyis ekzyis commented Mar 8, 2024

This PR unhides the own account in any user list. To not confuse stackers, it highlights that the account is still hidden for others using the anon icon:

sn ekzyis com_top_stackers_forever(iPhone SE) (1)

sn ekzyis com_top_stackers_forever(iPhone SE)

Tested by looking which users are currently at the top in my db dump and then impersonating one of them. Did that via login with lightning and updating users.pubkey in their row with my pubkey and then login again.

I only checked /top/stackers/forever and not the leaderboard since my leaderboard was empty locally but looking at the code, they all use the same code so I am pretty confident this will indeed just work™ for any user list.

This is the first PR to solve what @kerooke mentioned in Slack with showing users their MSM leaderboard rank even if they are outside of top 64 but this felt like the first of two steps to get there. This felt like a precursor since we most likely want to show the rank of any user, ignoring their privacy setting.

This would also solve some stackers removing their privacy setting just to look at their rank which is bad UX even though it might lead to funny encounters.

@ekzyis ekzyis added enhancement improvements to existing features privacy ux labels Mar 8, 2024
@ekzyis ekzyis mentioned this pull request Mar 11, 2024
18 tasks
@huumn huumn merged commit c8e65d5 into master Mar 14, 2024
4 checks passed
@ekzyis ekzyis deleted the show-hidden-self branch April 5, 2024 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement improvements to existing features privacy ux
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants