Minor fixes

This commit is contained in:
WardPearce
2026-02-12 02:18:20 +13:00
parent 34f1336924
commit a7029a07f9
2 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -28,9 +28,9 @@ export function relativeTimestamp(epochTime: number): string {
if (isSameDay || isSameWeek) {
return diffDuration.humanize(true);
} else if (isSameMonth) {
return timestamp.format('Do @ h:mm A');
return timestamp.format('Do h:mm A');
} else if (isThisYear) {
return timestamp.format('MMMM Do @ h:mm A');
return timestamp.format('MMMM Do h:mm A');
} else {
return timestamp.format('MMMM Do YYYY h:mm A');
}
@@ -6,11 +6,15 @@
import ItemsList from '$lib/components/ItemsList.svelte';
import { resolve } from '$app/paths';
import { _ } from '$lib/i18n';
import { isYTBackend } from '$lib/misc';
let currentPage = 1;
let videos: (VideoBase | Video | PlaylistPageVideo)[] = $state($feedCacheStore.subscription);
async function loadMore(event: InfiniteEvent) {
// Not supported or needed on YT backend
if (isYTBackend()) return;
currentPage++;
const feed = await getFeed(100, currentPage);
if (feed.videos.length === 0) {