Compare commits
2 Commits
2e1a7c1035
...
861e944fe1
Author | SHA1 | Date |
---|---|---|
k00b | 861e944fe1 | |
k00b | 865cdccb2a |
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue