diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-08-30 18:44:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-30 18:44:00 +0100 |
commit | e7954e590b92b69dad8aabb0085a02e65024837d (patch) | |
tree | c86fcf4dfa156ac7f3a824630ba6c1e7eaa30ff4 /src/lib/strings | |
parent | c60e8d0772d93fb3b0eca00b5fb1de9e110df320 (diff) | |
download | voidsky-e7954e590b92b69dad8aabb0085a02e65024837d.tar.zst |
[Videos] Fix uploads (#5042)
* fix pds url * fix service auth exp * whoopsie wrong branch
Diffstat (limited to 'src/lib/strings')
-rw-r--r-- | src/lib/strings/url-helpers.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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 |