diff --git a/materialious/src/lib/components/ChannelThumbnail.svelte b/materialious/src/lib/components/ChannelThumbnail.svelte index 1749f00b..fdce3fe1 100644 --- a/materialious/src/lib/components/ChannelThumbnail.svelte +++ b/materialious/src/lib/components/ChannelThumbnail.svelte @@ -1,4 +1,5 @@ - + {#if !$interfaceLowBandwidthMode} diff --git a/materialious/src/lib/components/HashtagThumbnail.svelte b/materialious/src/lib/components/HashtagThumbnail.svelte index 58737d8a..07d968f4 100644 --- a/materialious/src/lib/components/HashtagThumbnail.svelte +++ b/materialious/src/lib/components/HashtagThumbnail.svelte @@ -1,4 +1,5 @@ - + {truncate(hashtag.title, 14)} diff --git a/materialious/src/lib/components/Player.svelte b/materialious/src/lib/components/Player.svelte index d2430121..dbd7711b 100644 --- a/materialious/src/lib/components/Player.svelte +++ b/materialious/src/lib/components/Player.svelte @@ -347,7 +347,7 @@ if (!import.meta.env.VITE_DEFAULT_COMPANION_INSTANCE) { captionUrl = caption.url.startsWith('http') ? caption.url - : `${get(instanceStore)}${caption.url}`; + : `${new URL(get(instanceStore)).origin}${caption.url}`; } else { captionUrl = `${import.meta.env.VITE_DEFAULT_COMPANION_INSTANCE}${caption.url}`; } diff --git a/materialious/src/lib/components/PlaylistThumbnail.svelte b/materialious/src/lib/components/PlaylistThumbnail.svelte index 6b57ce8f..9a2f5789 100644 --- a/materialious/src/lib/components/PlaylistThumbnail.svelte +++ b/materialious/src/lib/components/PlaylistThumbnail.svelte @@ -1,5 +1,6 @@ - {letterCase(truncate(playlist.title))} - {playlist.author} diff --git a/materialious/src/lib/components/Search.svelte b/materialious/src/lib/components/Search.svelte index 1a38fb7a..29fc6d1e 100644 --- a/materialious/src/lib/components/Search.svelte +++ b/materialious/src/lib/components/Search.svelte @@ -1,4 +1,5 @@ - + {#if !$interfaceLowBandwidthMode} + import { resolve } from '$app/paths'; import { getComments } from '$lib/api'; import { type Comment, type Comments } from '$lib/api/model'; import { getBestThumbnail, proxyGoogleImage } from '$lib/images'; @@ -34,7 +35,7 @@ function commentTimestamps(html: string): string { const regex = /([^<]+)<\/a>\s*(.+)/g; - const replacement = `$3 $4`; + const replacement = `$3 $4`; const processedHtml = html.replace(regex, replacement); @@ -63,7 +64,7 @@ {/if} - + {comment.author} diff --git a/materialious/src/lib/components/watch/Description.svelte b/materialious/src/lib/components/watch/Description.svelte index 23b1ee36..d15324d0 100644 --- a/materialious/src/lib/components/watch/Description.svelte +++ b/materialious/src/lib/components/watch/Description.svelte @@ -1,4 +1,5 @@ diff --git a/materialious/src/routes/(app)/playlist/+page.ts b/materialious/src/routes/(app)/playlist/+page.ts index 40b7e108..8363bb63 100644 --- a/materialious/src/routes/(app)/playlist/+page.ts +++ b/materialious/src/routes/(app)/playlist/+page.ts @@ -1,10 +1,11 @@ import { goto } from '$app/navigation'; +import { resolve } from '$app/paths'; import { error } from '@sveltejs/kit'; export async function load({ url }) { const playlistId = url.searchParams.get('list'); if (playlistId) { - goto(`/playlist/${playlistId}`); + goto(resolve(`/playlist/${playlistId}`)); } else { error(404); } diff --git a/materialious/src/routes/(app)/playlist/[slug]/+page.svelte b/materialious/src/routes/(app)/playlist/[slug]/+page.svelte index 4918015b..02635a91 100644 --- a/materialious/src/routes/(app)/playlist/[slug]/+page.svelte +++ b/materialious/src/routes/(app)/playlist/[slug]/+page.svelte @@ -1,4 +1,5 @@