Skip to content

Opengraph image should be dismissable / removable in discord #11541

Open
@joshka

Description

@joshka

Current Behavior

The crates.io opengraph images can't be dismissed from a discord post.

Compare:

Has X

Image

Does not have X:

Image

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

  1. Paste a github link in a discord channel.
  2. Notice that you can remove the preview by hovering over the image and clicking the X
  3. Paste a crate link in a discord channel.
  4. 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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frontend 🐹C-enhancement ✨Category: Adding new behavior or a change to the way an existing feature works

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions