From b64a4784ab23e1dc4abe60487f00fb1a704a3271 Mon Sep 17 00:00:00 2001 From: Ayo Date: Sat, 21 Jan 2023 22:58:31 +0100 Subject: [PATCH] fix: make context default to public --- composables/timeline.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composables/timeline.ts b/composables/timeline.ts index 380f2865..b827fa61 100644 --- a/composables/timeline.ts +++ b/composables/timeline.ts @@ -17,7 +17,7 @@ function removeFilteredItems(items: mastodon.v1.Status[], context: mastodon.v1.F return [...items].filter(isFiltered).filter(isReblogFiltered) } -export function reorderedTimeline(items: mastodon.v1.Status[], context: mastodon.v1.FilterContext) { +export function reorderedTimeline(items: mastodon.v1.Status[], context: mastodon.v1.FilterContext = 'public') { let steps = 0 const newItems = removeFilteredItems(items, context)