fix: make context default to public

This commit is contained in:
Ayo 2023-01-21 22:58:31 +01:00
parent 28c011ac2e
commit b64a4784ab

View file

@ -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)