Compare commits

...

2 Commits

Author SHA1 Message Date
k00b 861e944fe1 fix item full embed for the 3rd and final(?) time 2024-09-30 12:37:33 -05:00
k00b 865cdccb2a fix item full embed param 2024-09-30 12:24:06 -05:00
1 changed files with 5 additions and 5 deletions

View File

@ -51,17 +51,17 @@ function BioItem ({ item, handleClick }) {
} }
function ItemEmbed ({ url, imgproxyUrls }) { function ItemEmbed ({ url, imgproxyUrls }) {
const provider = parseEmbedUrl(url)
if (provider) {
return <Embed src={url} {...provider} topLevel />
}
if (imgproxyUrls) { if (imgproxyUrls) {
const src = IMGPROXY_URL_REGEXP.test(url) ? decodeProxyUrl(url) : url const src = IMGPROXY_URL_REGEXP.test(url) ? decodeProxyUrl(url) : url
const srcSet = imgproxyUrls?.[url] const srcSet = imgproxyUrls?.[url]
return <MediaOrLink src={src} srcSet={srcSet} topLevel linkFallback={false} /> return <MediaOrLink src={src} srcSet={srcSet} topLevel linkFallback={false} />
} }
const provider = parseEmbedUrl(url)
if (provider) {
return <Embed url={url} {...provider} topLevel />
}
return null return null
} }