From 2a0e5e55918d91d8d64920d2ed626c499cc43459 Mon Sep 17 00:00:00 2001 From: bytedream Date: Sat, 31 Oct 2026 03:20:11 +0100 Subject: [PATCH] add opengraph secure video link --- src/pages/video/[name].astro | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/video/[name].astro b/src/pages/video/[name].astro index 2ed539d..a679abd 100644 --- a/src/pages/video/[name].astro +++ b/src/pages/video/[name].astro @@ -2,7 +2,7 @@ import WebsiteLayout from '@layouts/website/WebsiteLayout.astro'; import VideoPlayer from '@app/website/video/VideoPlayer.svelte'; import { getVideoMetadata, resolveVideo } from '@util/video.ts'; -import { siteUrl } from '@util/url.ts'; +import { siteBase, siteUrl } from '@util/url.ts'; const { name } = Astro.params; @@ -20,6 +20,7 @@ const streamUrl = siteUrl(`video/${encodeURIComponent(video.name)}/stream`); + {streamUrl.startsWith('https') && } {width && } {height && }