Description
Current Behavior
The crates.io opengraph images can't be dismissed from a discord post.
Compare:
Has X

Does not have X:

Expected Behavior
When a crates.io link is posted to discord, the image should have a little X that allows the preview image to be removed from the channel. For all other preview images I've seen this occurs, only crates.io links seem to not allow removing this.
Steps To Reproduce
- Paste a github link in a discord channel.
- Notice that you can remove the preview by hovering over the image and clicking the X
- Paste a crate link in a discord channel.
- Notice that the X doesn't appear
Environment
- OS: macos
Anything else?
This is likely a discord bug, which should be fixed on their end, but given that this only occurs for crates.io, until that's fixed, perhaps crates.io could address whatever is causing this on their end.
Tobias mentioned it was possibly lack of og:description being sent in the head.
my best guess is that it's because we don't have an
og:description
tag on the page (yet), so it only shows the image, but not the title/description
This seems like a reasonable idea of what is happening. This started before the image updates PR was merged (when the generic image preview happened).