-
Notifications
You must be signed in to change notification settings - Fork 46
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
ATProto => ActivityPub link previews #958
Comments
For Mastodon, you'll want to put the image URL in the attachment's |
Pixelfed will drop any posts with link attachments that aren't replies, as it's strict about supported attachment types. I think that, generally speaking, you definitely should add a It seems that PeerTube (now?) sends |
I'm actually surprised that fediverse servers, or at least Mastodon, use anything in |
It's an edge case of a fallback, yeah. Mastodon does not actually support link attachments outside the Thinking about it, the semantic intention of I noticed that Akkoma can apparently show some kind of summary text when it can't show the attachment preview, but I can't read its source code well enough to know how to make use of that. I think it's fair to say that "links as attachments" just isn't something that's widely supported by Fediverse apps, even if in my opinion it should be, and could be a way to not overwhelm the link destination. |
Right, and it breaks in Mastodon itself too, eg the screenshot in the original description here. The AS2 attachment here was converted automatically by granary from the embed facet in the Bluesky post. I wasn't intentionally trying to generate a link preview in the fediverse; I expected Mastodon and most others to fetch the link and generate the preview themselves, like they usually do. Regardless, you're right, |
Unfortunately not at first, since I don't think anything actually supports that kind of attachment. The only way to make links work reliably and render correctly, currently, is to insert them into the post content for (almost all?) fediverse apps, unfortunately, since they follow Twitter's data model in that regard. |
Looking at this again, I'm inclined to just remove these attachments altogether and let fediverse servers generate their own link previews, since that's the happier and more common path in the fediverse. |
Reopening this, @bnewbold inspired me to try again to see if I can get fedi servers to render link previews that are separate from post text. I never actually tried with |
to clarify, what i was reporting was that sometimes there is a bsky post with no URL in the text and only a card/embed. In those cases, it feels like the URL from the embed should be appended to the end of the post text (with a At least in the case of:
|
Right! I get it. I generally try pretty hard to not modify users' original post text at all, so I first plan to try to get the AS2 equivalent of a |
I went the HTML-link-in-content route. Example: https://indieweb.social/@[email protected]/112645157258479340 . Should be deployed in ~10m. |
They're partially making it over, but not all the way. Example Bluesky post and bridged fediverse post.
Bluesky record, pruned:
AS1:
AS2:
The text was updated successfully, but these errors were encountered: