-
Notifications
You must be signed in to change notification settings - Fork 43
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
Some fediverse clients don't rewrite hashtag links #1634
Comments
Refreshed my memory a bit, and at least based on Mastodon's implementation back in March 2023, sounds like this wouldn't work. From #45 (comment) :
|
I think these should be redirected to hashtag searches (not text searches for the hashtag, those are different there!) on Bluesky. It's essentially what all other fediverse instances do too. |
Good idea! Totally makes sense, and easy to do. |
...not sure what we'll do for web users though. Hrm. |
^ Deploying a change to link Bluesky => fediverse converted hashtags to the bsky.app hashtag search page. |
Hm, I think that might enable the link preview for them, though. |
Hmm, receiving fediverse instances will generally rewrite hashtag links instead of generating previews for them, right? That's what they do now. Non-webapp clients like Mastodon Android may not do that rewriting, but afaik they also don't generate previews themselves locally...? (In any case, I'm happy to do some work like this to smooth over these links, but only some. I have kinda limited patience for interop depending on how finicky and niche it gets. 🤷) |
Here's an example Bluesky => fediverse bridged post with the new hashtag URLs:
Anyone with an affected client/app, feel free to look and check that the hashtags now link to bsky.app! |
Oh, if it works then I take it back of course 😅 |
I'm a web user and I use absolute URLs to 'mysite/tags/the-tag-itself' as I have an actual page that's catching those. Both those inline tags (from Somehow Mastodon still takes the old original URL and uses that as link preview. Also any inline tags get removed from the added ( |
@gerbenjacobs ruh roh! That's not good. Odd though, I'm not seeing that link preview on eg indieweb.social, on either desktop or mobile web. Where is your screenshot from? |
How about https://bsky.brid.gy/hashtag/TAG simply returns a 302 and redirect to https://mastodon.social/tags/TAG ? The #TAG links belong to the Fédi, not to Bsky. Take web clients: they point to the local instance, in the Fédi. |
It's a nice idea, but it privileges mastodon.social a bit more than I'd like. bsky.app is very much the canonical Bluesky client app right now, but mastodon.social is much less the canonical fediverse instance, and fedi people often don't love seeing it enshrined as "special" like this compared to other instances. |
Oh, also, @gerbenjacobs, I misinterpreted your screenshot earlier, I think it's mostly doing the right/expected thing after all. I looked at it on three different instances - indieweb.social, mas.to, mastodon.social - and the last two do have the link preview you saw. Not sure why the difference there. |
use piaille.fr then :-) it's the biggest 🇫🇷 instance afaik, and "neutral". Maybe as a quick fix. |
Yeah, I'm not sure there's much to do. The screenshot was from todon.nl which is running Mastodon 4.3.2. I also have my own instance running the latest GotoSocial. Those that are stored on todon.nl (running Mastodon) have this link preview, while those stored by GtS don't have those. GtS also doesn't do anything with hashtags and just keeps it a regular link back to my site. And semaphore.social always uses the spoiler mechanic for that specific post with "Long post". Bottomline: many servers and many clients do a lot of different things 🤷🏼♂️ |
I think it would be a good idea to (Bluesky hashtag search pages are guest-accessible. Technically this alone would fix this issue in terms of UX, I think, though it would of course be nice to do this without the redirect.) |
In the fediverse, hashtags in
content
are like mentions: we wrap them in HTML links, and when remote instances render the post, they rewrite those links to point to the hashtag search page on their instance. Gory details in #45....except evidently not all clients do this. The Mastodon Android app, for example, leaves them as is: https://piaille.fr/@politipet/113664287902122111
Bridgy Fed currently points its placeholder links in
content
to non-existent pages, eg #foo gets linked to https://bsky.brid.gy/hashtag/foo. I don't plan to build a hashtag or search UI in Bridgy Fed's web UI, and hashtags in content do need to be linked somewhere for clients that do rewrite, so I'm not sure what to do. Maybe link to#
, ie the current page?The text was updated successfully, but these errors were encountered: