From e7954e590b92b69dad8aabb0085a02e65024837d Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Fri, 30 Aug 2024 18:44:00 +0100 Subject: [Videos] Fix uploads (#5042) * fix pds url * fix service auth exp * whoopsie wrong branch --- src/lib/strings/url-helpers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/strings/url-helpers.ts') diff --git a/src/lib/strings/url-helpers.ts b/src/lib/strings/url-helpers.ts index 95c6bcead..4c8db8399 100644 --- a/src/lib/strings/url-helpers.ts +++ b/src/lib/strings/url-helpers.ts @@ -340,7 +340,7 @@ export function shortLinkToHref(url: string): string { } } -export function getHostnameFromUrl(url: string): string | null { +export function getHostnameFromUrl(url: string | URL): string | null { let urlp try { urlp = new URL(url) @@ -350,7 +350,7 @@ export function getHostnameFromUrl(url: string): string | null { return urlp.hostname } -export function getServiceAuthAudFromUrl(url: string): string | null { +export function getServiceAuthAudFromUrl(url: string | URL): string | null { const hostname = getHostnameFromUrl(url) if (!hostname) { return null -- cgit 1.4.1