fix: uncomment meta tags (#652)

This commit is contained in:
diced
2025-01-08 22:22:07 -08:00
parent ff4a5c9d74
commit d6ef09f5b3

View File

@@ -73,7 +73,7 @@ export default function ViewFileId({
const meta = (
<Head>
{/* {user?.view.embedTitle && user?.view.embed && (
{user?.view.embedTitle && user?.view.embed && (
<meta
property='og:title'
content={parseString(user.view.embedTitle, { file: file, user, ...metrics }) ?? ''}
@@ -96,7 +96,7 @@ export default function ViewFileId({
property='theme-color'
content={parseString(user.view.embedColor, { file, user, ...metrics }) ?? ''}
/>
)} */}
)}
{file.type.startsWith('image') && (
<>
@@ -111,22 +111,10 @@ export default function ViewFileId({
{file.type.startsWith('video') && (
<>
{/* <meta name='twitter:card' content='player' />
<meta name='twitter:player' content={`${host}/raw/${file.name}`} />
<meta name='twitter:player:stream' content={`${host}/raw/${file.name}`} />
<meta name='twitter:player:width' content='720' />
<meta name='twitter:player:height' content='480' />
<meta name='twitter:player:stream:content_type' content={file.type} />
<meta name='twitter:title' content={file.name} /> */}
{file.thumbnail && <meta property='og:image' content={`${host}/raw/${file.thumbnail.path}`} />}
<meta property='og:type' content='video.other' />
{/* <meta property='og:url' content={`${host}/raw/${file.name}`} /> */}
{/* <meta property='og:video' content={`${host}/raw/${file.name}`} /> */}
<meta property='og:video:url' content={`${host}/raw/${file.name}`} />
{/* <meta property='og:video:secure_url' content={`${host}/raw/${file.name}`} /> */}
{/* <meta property='og:video:type' content={file.type} /> */}
<meta property='og:video:width' content='1920' />
<meta property='og:video:height' content='1080' />
</>