diff --git a/web/src/html.js b/web/src/html.js index cd521dd6f..b8df494a7 100644 --- a/web/src/html.js +++ b/web/src/html.js @@ -164,6 +164,18 @@ function buildClaimOgMetadata(uri, claim, overrideOptions = {}, referrerQuery) { getThumbnailCdnUrl(OG_IMAGE_URL) || `${URL}/public/v2-og.png`; + const getOgType = (streamType) => { + switch (streamType) { + // https://ogp.me/?fbclid=IwAR0Dr3Rb3tw1W5wjFtuRMZfwewM2vlrSnNp-_ZKlvCzo5nKuX2TuTqt0kU8#types + case 'video': + return 'video.other'; + case 'audio': + return 'music.song'; + default: + return 'website'; + } + }; + // Allow for overriding default claim based og metadata const title = overrideOptions.title || claimTitle; const description = overrideOptions.description || claimDescription; @@ -192,7 +204,7 @@ function buildClaimOgMetadata(uri, claim, overrideOptions = {}, referrerQuery) { head += ``; head += ``; head += ``; - head += ``; + head += ``; head += ``; head += ``; head += ``;