fix twitter embeds?

This commit is contained in:
Jeremy Kauffman 2020-01-28 14:37:03 -05:00
parent 13ead2f1e7
commit 5da80baca1

View file

@ -94,7 +94,8 @@ function buildClaimOgMetadata(uri, claim, overrideOptions = {}) {
head += `<meta property="og:video" content="${videoUrl}" />`;
head += `<meta property="og:video:secure_url" content="${videoUrl}" />`;
head += `<meta property="og:video:type" content="${claim.source_media_type}" />`;
head += `<meta name="twitter:player" content="${embedPlayer}">`;
head += `<meta name="twitter:card" content="player"/>`;
head += `<meta name="twitter:player" content="${embedPlayer}" />`;
if (claim.frame_width && claim.frame_height) {
head += `<meta property="og:video:width" content="${claim.frame_width}"/>`;
head += `<meta property="og:video:height" content="${claim.frame_height}"/>`;