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.
with the latest rollout, all known issues with the new discord embeds for mastodon posts are resolved, so if you encounter something that embeds poorly, please tell me about it!

@rcombs I think at some point you mentioned you were going to hide cw'd text behind a spoiler? that doesn't seem to be happening

(really appreciate your work on this! it's a massive improvement)

@Gaelan I considered it, but it doesn't work for images (the usual main use-case for marking content as sensitive); ultimately we're treating sensitive mastodon posts the same as sensitive posts on any other service (ie the sharing user can obscure them using ||spoiler tags|| if they find it appropriate for their community)
@rcombs fair - it’s mildly surprising and I imagine will catch some people out, but once they learn how it works it’ll be fine
@Gaelan yeah, it's an unfortunate surprise for people who were used to the old behavior, but it should be a one-time thing, and ultimately it's in line with what happens for eg links to sensitive-tagged posts on bluesky

@rcombs @Gaelan Hey, Discord embeds look very shiny now, thank you for that!

My only issue is the fact that it does indeed ignore content warnings now. I talk about shows a lot and I don't want it to blast spoilers into my Discord. Is there a work-around or is this just the way it is now?

@Radgryd @Gaelan Yeah, this was the team's decision on how to handle sensitive-flagged posts. It brings mastodon posts into alignment with the handling for other sites, and makes a bit more sense for chat-embed usage. On discord, embeds exist in channels (with their own community, context, and moderation), rather than when boosted onto people's general-purpose timelines (where users have ways to configure filters on an individual basis)

Users who want to obscure the content of an embed can wrap the link in ||pipes|| (put a space after the link if you want to have it still embed, but behind a spoiler block), which applies to links from any site

@rcombs @Gaelan That's unfortunate. I've felt the Fediverse was CW-sensitive more than other platforms, which I've enjoyed.

I let my feed be posted on my Discord via an RSS bot, so I have no control over spoilering the link/embed itself.

The embed ignores Mastodon's spoiler feature as well. I don't really know what the solution for this is.

@Radgryd I'm confused; as far as I can tell, this isn't a feature Mastodon has? That post just contains the plaintext string "||Test||", which doesn't have any special meaning in a Mastodon post.

As for solutions to your issue, I'd suggest using a bot that makes smarter decisions about what posts to forward where, or whether to obscure the embeds, based on the content of the post.

@rcombs I input the spoiler tags for Discord to see how it would display in the embed posted on Discord, of course it doesn't do anything on Mastodon..

It *did* use to obscure the embeds, as shown before. Thanks anyway.