snarfed / bridgy-fed

🌉 A bridge between decentralized social network protocols
https://fed.brid.gy
Creative Commons Zero v1.0 Universal
726 stars 39 forks source link

Mentioning a BSky bridged account on Mastodon links to a raw JSON file #1441

Closed edent closed 3 weeks ago

edent commented 3 weeks ago

I've linked https://bsky.app/profile/openbenches.org to @openbenches.org@bsky.brid.gy

If I mention the new account on Mastodon, some users report that clicking on it results in being served a JSON file:

The raw HTML of my mention shows:

<a href="https://bsky.brid.gy/ap/did:plc:6w5rx6ik4qvl2jfw6orcnpup" class="u-url mention">
   @<span>openbenches.org</span>
</a>

Some apps (Fedilab) support clicking on that and showing the account properly. Others (Tusky) don't.
If I click on the link from the website I use, it works. If I click on a link from a different Mastodon instance, I get the JSON.

jfietkau commented 3 weeks ago

Should this be in https://github.com/snarfed/bridgy-fed/issues? Might be the same issue as #1429 there.

Due to a combination of known implementation decisions by Mastodon and Bridgy Fed, being redirected to the JSON response is what I would expect to see on servers where I'm not logged in (I can elaborate on this if needed). But oddly enough your mention shows a local profile to me on an anonymous mastodon.social tab, but redirects to the JSON in my own logged-in Mastodon web interface. 🤔 Strange stuff.

snarfed commented 3 weeks ago

Yes! Thanks @jfietkau, moving to bridgy-fed. And thanks for filing @edent! This is a weird one, we've seen it occasionally on and off for a long time, but I still don't fully understand it. I'm going to merge this into #1009 (and maybe merge #1429 in there too) and expand that issue to include Mastodon.

snarfed commented 3 weeks ago

Duplicate of #1009