test twitter lives

This commit is contained in:
Thomas Zarebczan 2022-03-16 18:46:46 -04:00
parent c8bdb33e65
commit c1e97ee451
No known key found for this signature in database
GPG key ID: 767B41E1BB7346F2

View file

@ -215,7 +215,7 @@ function buildClaimOgMetadata(uri, claim, overrideOptions = {}, referrerQuery) {
claimPath
)}&format=xml${referrerQuery ? `&r=${encodeURIComponent(referrerQuery)}` : ''}" title="${title}" />`;
if (mediaType && (mediaType.startsWith('video/') || mediaType.startsWith('audio/'))) {
if ((mediaType && (mediaType.startsWith('video/') || mediaType.startsWith('audio/'))) || !mediaType) {
const videoUrl = generateEmbedUrl(claim.name, claim.claim_id);
head += `<meta property="og:video" content="${videoUrl}" />`;
head += `<meta property="og:video:secure_url" content="${videoUrl}" />`;