astro-embed icon indicating copy to clipboard operation
astro-embed copied to clipboard

Add option in `LinkPreview` to ignore `og:video`

Open jahirfiquitiva opened this issue 4 months ago • 1 comments

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!

jahirfiquitiva avatar Aug 18 '25 16:08 jahirfiquitiva

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:

https://github.com/delucis/astro-embed/blob/e5fa7e3018506eff78db1399bf9827c2af5b27ac/packages/astro-embed-link-preview/LinkPreview.astro#L38-L42

delucis avatar Aug 18 '25 16:08 delucis