This commit is contained in:
Thomas Zarebczan 2021-10-12 22:30:05 -04:00
parent 9dbee19961
commit 02a8099514
No known key found for this signature in database
GPG key ID: D505010BDB4364BC

View file

@ -33,7 +33,7 @@ function getThumbnailCdnUrl(url) {
return url; return url;
} }
if (url && url.includes('https://twitter-card')) { if (url && (url.includes('https://twitter-card') || url.includes('https://cards.odysee.com'))) {
return url; return url;
} }
@ -206,6 +206,8 @@ function buildClaimOgMetadata(uri, claim, overrideOptions = {}) {
} }
head += `<meta name="twitter:image" content="${claimThumbnail}"/>`; head += `<meta name="twitter:image" content="${claimThumbnail}"/>`;
head += `<meta name="twitter:player:image" content="${claimThumbnail}"/>`;
head += `<meta name="twitter:site" content="@OdyseeTeam"/>`;
head += `<meta property="og:description" content="${cleanDescription}"/>`; head += `<meta property="og:description" content="${cleanDescription}"/>`;
head += `<meta property="og:image" content="${claimThumbnail}"/>`; head += `<meta property="og:image" content="${claimThumbnail}"/>`;
head += `<meta property="og:locale" content="${claimLanguage}"/>`; head += `<meta property="og:locale" content="${claimLanguage}"/>`;