Discord embeds for Mastodon posts are getting a lot better! You should see better images and videos, better formatting, better context styling, and support for embedding a wider variety of posts. This is rolling out now, so you should see it start to take effect in the coming hours. Let me know if you run into any problems!
also yes I had to write an HTML-to-Markdown converter in Rust for this
Update: the new rich Discord embeds are now available for posts on a variety of other ActivityPub services, including Misskey, Pixelfed, and more! Embeds also now indicate when a post is a reply.
If you run an ActivityPub service and your links aren't getting rich embeds on Discord, it's *probably* because you're blocking our requests, but there's a chance you've uncovered a bug! If you think you have (or if you've found a post that gets a rich embed that's malformed in some way), reply here with details and I'll take a look.
@rcombs do you plan to include a Signature header? the lack of one when requesting the activitypub representation will significantly hurt interoperability
@leo nope; turns out that the current setup (where we try to hit either the Mastodon API or an application/activity+json link) covers the vast majority of target cases without requiring the unfurler service to also itself be an ActivityPub server on the public internet (or share key pairs with one), which would be a bigger lift than I'm able to justify for the small remainder of cases
@rcombs hmm, i'm pretty sure a minimal compliant implementation could just be a single static JSON file. i was thinking about making a rust crate for read-only signed activitypub requests