diff --git a/src/lib/timeline.js b/src/lib/timeline.js index 6b6050f..68aa2b2 100644 --- a/src/lib/timeline.js +++ b/src/lib/timeline.js @@ -16,8 +16,10 @@ export async function getTimeline(timelineType = "home", clean, localOnly = fals if (loading) return; // no spamming!! loading = true; - // if (!clean && get(timeline).length > 0) - // last_post = get(timeline)[get(timeline).length - 1].id; + if(clean) { + timeline.set([]); + last_post = false; + } let timeline_data; switch(timelineType) { @@ -47,10 +49,7 @@ export async function getTimeline(timelineType = "home", clean, localOnly = fals return; } - if (clean) { - timeline.set([]); - last_post = false; - } else { + if (!clean) { last_post = timeline_data.next.url.searchParams.get("max_id") } diff --git a/src/lib/ui/Navigation.svelte b/src/lib/ui/Navigation.svelte index 384450d..b0fa105 100644 --- a/src/lib/ui/Navigation.svelte +++ b/src/lib/ui/Navigation.svelte @@ -124,7 +124,10 @@
-