Use absolute URL for og:image if set. Closes #2250

This commit is contained in:
Gabe Kangas
2022-11-18 21:37:54 -08:00
parent 5d87d1c320
commit 2e0f0d1a53

View File

@@ -84,9 +84,9 @@ export const Main: FC = () => {
<meta property="og:type" content="video.other" /> <meta property="og:type" content="video.other" />
<meta property="video:tag" content="{{.TagsString}}" /> <meta property="video:tag" content="{{.TagsString}}" />
<meta property="og:image" content="{{.Thumbnail}}" /> <meta property="og:image" content="{{.RequestedURL}}{{.Thumbnail}}" />
<meta property="og:image:url" content="{{.Thumbnail}}" /> <meta property="og:image:url" content="{{.RequestedURL}}{{.Thumbnail}}" />
<meta property="og:image:alt" content="{{.Image}}" /> <meta property="og:image:alt" content="{{.RequestedURL}}{{.Image}}" />
<meta property="og:video" content="{{.RequestedURL}}/embed/video" /> <meta property="og:video" content="{{.RequestedURL}}/embed/video" />
<meta property="og:video:secure_url" content="{{.RequestedURL}}/embed/video" /> <meta property="og:video:secure_url" content="{{.RequestedURL}}/embed/video" />