-
Notifications
You must be signed in to change notification settings - Fork 40
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
Fediverse => Bluesky: auto-generate embeds (with thumbnail images) for links? #1411
Comments
This happens because in ActivityPub (Mastodon) link previews are generated by the receiver, but in Bluesky they are stored by the sender as part of the post itself. Bridgy Fed already handles this for web posts it seems (#1192). Relevant Bluesky lexicons: |
Ok, my instance is Mastodon.nu if that is of any importance. |
It's mainly the software and version that matters, as long as posts go through at all. (The current Mastodon v4.3.1, in this case.) |
This is an interesting one! @Tamschi is broadly right: Bluesky/ATProto link previews (including thumbnail images) are explicit metadata in post objects. ActivityStreams 2 post objects can have similar link preview metadata, eg in the Take https://indieweb.social/users/snarfed/statuses/112582713947140513 as an example. I authored it inside Mastodon, and included a single URL in the text. Mastodon renders a link preview embed for that URL, in both the source instance and remote instances, but it federates it as an AS2 I haven't done a comprehensive survey, but afaik at least some other popular fediverse servers, if not most, do the same thing. So, the common case is that fediverse link previews are a non-standard heuristic, and I'm reluctant to bake that kind of thing into Bridgy Fed. I get that it might still be the right thing to do for UX though! So I'm torn. (I do indeed do this for web => Bluesky, but that situation is very different, since the source post is a single specific web page.) |
More background on how fediverse servers, particularly Mastodon, prefer to generate their own link previews and don't really want (or trust) them in federated |
No progress yet, sorry. First step would be to decide that we want to apply this non-standard heuristic described above, specifically that if there are link(s) in the text and no explicit preview, we generate one automatically based on the first link. I don't love that, but I guess I'm ok with it. After that, it's just the implementation work. PRs are welcome! |
I can see why you're hesitant/reluctant, but as long as most fediverse clients and servers like Mastodon continue to generate previews from the first link in the post, it sounds like a good fix. |
Sorry, I hadn't seen/connected Flipboard URLs not generating an image with this. If I may show my naivety and ignorance and ask a possibly daft question. Can major platforms like Flipboard be persuaded to do anything different to make it work, or is that the wrong end to tackle the issue? |
Interestingly, there seems to be ongoing work on Mastodon's end to federate link previews: https://www.theregister.com/2024/05/06/mastodon_delays_fix_ddos/ The discussion on that is here: mastodon/mastodon#23662 If they go ahead with standardising a federated link preview system, even if it's just a cached version without full trust, then that's likely something that Bridgy Fed could translate back and forth between the networks. |
Good question! I talk with people at Flipboard and many of the other big platforms pretty regularly. There are a number of options here, discussed above, but the conclusion right now is probably just to generate the previews ourselves. |
Thanks, just to add. I now see someone has noted that the bridged posts from Flipboard look like a bot and has added to a warning list. Small scale, but could be indicative of how viewers see the posts. |
There has been a slight change. More of a text preview now appears on posts from Flipboard, but no image as yet. |
Good eye! Yup, I shipped a first pass at this, it works, but doesn't include images yet. Working on those. |
Sounds like a plan! Thanks. |
….postprocess_object for snarfed/bridgy-fed#1411
I see previews now 👀 |
Me too, thank you for the fix. It looks so much better now. 🙌 |
Rolling this back temporarily due to #1575, sorry. It'll be back soon! |
also, you'll want to mind the hashtag (induced) links in the bridged posts. I had a post from piaille.fr Masto that had a hashtag first thing, and it displayed on Bsky with the preview of piaille.fr 😁 |
Updated and deployed again. Example: |
My bluesky account is https://fedibird.com/@chaperon/113585855054825034 There are several other posts that have not been reflected in blueSky since the day the link preview feature of this issue was implemented. |
Working great for me, toots with external links showing up with previews on Bluesky (my Mastodon account is on the instance Mastodon.nu, btw). Thank you for fixing this, @snarfed ! Haven't tried links to X or Bluesky, but for me that's of less importance than news sites etc. |
Just a short addon to this: it works well for short posts that are bridged, but for posts with more than 300 characters, it doesn't. Could this still be fixed? |
@EmilJacobs right now, if a post is longer than 300 chars and we have to truncate it, we prioritize the link to the original post. |
on some posts, it seems that the image size in the mirrored post is not set as per the original, see e.g. |
@popet-master yes! that's #1571 |
I do not know if this is a general problem between platforms or if it is strictly an issue between Mastodon -> Bluesky, but whenever I post an article (or other external link) on Mastodon the thumbnail doesn't show up on Bluesky. You can see the link and click on it, but no thumbnail.
Would be great if this could be fixed.
The text was updated successfully, but these errors were encountered: