feat: reorder and filter account timeline

This commit is contained in:
Ayo 2023-01-21 21:03:41 +01:00
parent 73a6678cb3
commit 1044c8fcbc
2 changed files with 2 additions and 2 deletions

View file

@ -3,7 +3,7 @@ import type { mastodon } from 'masto'
const paginator = useMastoClient().v1.timelines.listHome({ limit: 30 }) const paginator = useMastoClient().v1.timelines.listHome({ limit: 30 })
const stream = $(useStreaming(client => client.v1.stream.streamUser())) const stream = $(useStreaming(client => client.v1.stream.streamUser()))
const reorderAndFilter = (items: mastodon.v1.Status[]) => reorderedTimeline(items, 'account') const reorderAndFilter = (items: mastodon.v1.Status[]) => reorderedTimeline(items, 'home')
</script> </script>
<template> <template>

View file

@ -10,7 +10,7 @@ const { t } = useI18n()
const account = await fetchAccountByHandle(handle) const account = await fetchAccountByHandle(handle)
const reorderAndFilter = (items: mastodon.v1.Status[]) => reorderedTimeline(items, 'home') const reorderAndFilter = (items: mastodon.v1.Status[]) => reorderedTimeline(items, 'account')
const paginator = useMastoClient().v1.accounts.listStatuses(account.id, { limit: 30, excludeReplies: true }) const paginator = useMastoClient().v1.accounts.listStatuses(account.id, { limit: 30, excludeReplies: true })