bluesky-social / social-app

The Bluesky Social application for Web, iOS, and Android
https://bsky.app
MIT License
11.82k stars 1.51k forks source link

punycode failures, you can't @ a punycode handle, and handles render incorrectly #6354

Open blowdart opened 1 week ago

blowdart commented 1 week ago

Steps to Reproduce

Someone has registered a handle with a punycode domain -

bsky-bsky-bsky.p-256.移动 which, correctly you are mapping underneath to bsky-bsky-bsky.p-256.xn--6frz82g

However, a couple of problems occur in the web app.

  1. View that profile (https://bsky.app/profile/bsky-bsky-bsky.p-256.xn--6frz82g)
  2. Now @ them, either via the compose button on their profile, or by following them and then using the search ahead (which works)
  3. Add some more text
  4. Create the post
  5. Marvel as you get a post but the @ is not active. There are no underlying facets in the post record (e.g. at://did:plc:hfgp6pj3akhqxntgqwramlbg/app.bsky.feed.post/3laxkj2ww422c)
  6. You're displaying the punycode handle on their profile page and search ahead. You should probably convert it back.

image

Attachments

No response

What platform(s) does this occur on?

iOS, Web (Desktop)

Device Info

No response

What version of the app are you using?

Build version: 1.93.0; Bundle info: 7731136 (prod); Bundle date: 24110818; Platform: web

Additional Information

No response

pelifix commented 5 days ago

I can confirm, same problem here.