Compare commits

..

No commits in common. "861e944fe1ed7b017831c36f28e607d33781100c" and "2e1a7c103519b5e66fd7ab5d3966fff13c2db252" have entirely different histories.

1 changed files with 5 additions and 5 deletions

View File

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