Open profile page with PubKey #80
tijno
started this conversation in
Medium CIPs
Replies: 3 comments 2 replies
-
Any questions or suggestions on this medium proposal? Its got 3 thumbs up - so looks like community is ok with it. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Yes please |
Beta Was this translation helpful? Give feedback.
0 replies
-
I approve ✅ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Suggested change:
Allow use of PublicKey in user profile URLs, eg:
https://bitclout.com/u/BC1YLgxLrxvq5mgZUUhJc1gkG6pwrRCTbdT6snwcrsEampjqnSD1vck
which then looks up the username and showshttps://bitclout.com/u/tijn
Rationale
Allow linking to user profiles that frequently change their username. Also prepare road for using PubKey in mentions.
Implementation
Add a check here
https://github.com/bitclout/frontend/blob/main/src/app/creator-profile-page/creator-profile-details/creator-profile-details.component.ts#L49
To determine if the path is a pub key:
If needed - lookup the username with GetSingleProfile api request
Then assign username to
this.userName
It may be possible to do this without a Username lookup api call here:
https://github.com/bitclout/frontend/blob/e17cc029e24b15ca36d3b41daf2a7a0275dcc55a/src/app/creator-profile-page/creator-profile-details/creator-profile-details.component.ts#L167
Either way - after loading user data must update route to the
/u/username
version.Future Enhancement
Ones @profile mentions have been implemented, a mention could actually encode the pub key in the post, eg
@BC1YLgxLrxvq5mgZUUhJc1gkG6pwrRCTbdT6snwcrsEampjqnSD1vck
so that when clicked it opens the profile page of the mentioned account.Beta Was this translation helpful? Give feedback.
All reactions