From 67a04b04f55f754f730d6aebdb80c235c8738e8e Mon Sep 17 00:00:00 2001 From: madrilene Date: Thu, 13 Mar 2025 16:03:42 +0100 Subject: [PATCH] update component --- src/_includes/webc/custom-peertube.webc | 47 ++++++++++++++++++------- 1 file changed, 35 insertions(+), 12 deletions(-) diff --git a/src/_includes/webc/custom-peertube.webc b/src/_includes/webc/custom-peertube.webc index 94a3767..0701190 100644 --- a/src/_includes/webc/custom-peertube.webc +++ b/src/_includes/webc/custom-peertube.webc @@ -3,29 +3,52 @@ return `https://${instance}/w/${slug}${start ? `?start=${start}s` : ''}`; } function getEmbedLinkUrl(instance, embedSlug, start) { - return `https://${instance}/videos/embed/${embedSlug}${start ? `?start=${start}s&` : `?`}` + `title=0&warningTitle=0`; + const startParam = start ? `start=${start}s&` : ''; + return `https://${instance}/videos/embed/${embedSlug}?${startParam}title=0&warningTitle=0`; } + -
- -
+ + +
- +