Closed ds84182 closed 4 months ago
I, for one, am shocked — shocked — that Twitter might not respect a standard to prevent misuse of the internet. :astonished:
Do you know if Discord documents this anywhere? I'm not opposed to changing this (and adding similar robots.txt rules for the Facebook and Twitter bots), but I would like to add a cite to our robots.txt in case it changes further in the future so we don't have to go figure this out again next time.
Discord doesn't exactly document the user agent they use, but it's been referenced in their API doc issues (https://github.com/discord/discord-api-docs/issues/1600) as well in Twitter's robots.txt (because they, annoyingly, disabled embeds from Discord)
Linking a crate on Discord should display the crate name and the description, similar to sites like Twitter.
worth noting that our og:image for Twitter does not display a crate name or description (yet) either. this is just a static image and without server side rendering the rest of the metadata will also not be dynamic, unless Discord runs JS on their scrapers.
Current Behavior
When linking a crate on Discord, the link does not generate an embed. Discord specifically checks for the
Discordbot
user agent, since embeds are done server-side. This does not affect Twitter because Twitter embeds do not check robots.txt.Expected Behavior
Linking a crate on Discord should display the crate name and the description, similar to sites like Twitter.
Steps To Reproduce
Environment
Anything else?
No response