take 2 twitter live test

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

View file

@ -231,13 +231,13 @@ function buildClaimOgMetadata(uri, claim, overrideOptions = {}, referrerQuery) {
head += `<meta property="og:video:release_date" content="${release}"/>`;
}
if (mediaDuration) {
head += `<meta property="og:video:duration" content="${mediaDuration}"/>`;
head += `<meta property="og:video:duration" content="${mediaDuration || '0'}"/>`;
}
if (media && media.width && media.height) {
head += `<meta property="og:video:width" content="${media.width}"/>`;
head += `<meta property="og:video:height" content="${media.height}"/>`;
head += `<meta name="twitter:player:width" content="${media.width}">`;
head += `<meta name="twitter:player:height" content="${media.height}">`;
head += `<meta property="og:video:width" content="${media.width || '1280'}"/>`;
head += `<meta property="og:video:height" content="${media.height || '720'}"/>`;
head += `<meta name="twitter:player:width" content="${media.width || '1280'}">`;
head += `<meta name="twitter:player:height" content="${media.height || '720'}">`;
}
} else {
head += `<meta name="twitter:card" content="summary_large_image"/>`;