Skip to content

Add option in LinkPreview to ignore og:video #194

Closed

Description

@jahirfiquitiva

Hello

I would like to use the LinkPreview component and for it to show images only, even if og:video is available.

Unfortunately there is currently no option to achieve that. So here's to ask for it.

Thanks in advance!

Activity

  1. delucis commented on Aug 18, 2025

    @delucis
    Owner

    Hi @jahirfiquitiva — that seems like a fair request. Would you be interested in making a PR?

    We’d want to add a prop to https://github.com/delucis/astro-embed/blob/main/packages/astro-embed-link-preview/LinkPreview.astro and then use it when deciding whether to render the video here:

    {hideMedia ? null : meta.video && meta.videoType ? (
    <video controls preload="metadata" width="1200" height="630">
    <source src={meta.video} type={meta.videoType} />
    </video>
    ) : meta.image ? (

  2. Repository owner locked and limited conversation to collaborators on Jan 3, 2026
  3. converted this issue into a discussion #276 on Jan 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions