diff --git a/app/components/timeline/TimelinePublic.vue b/app/components/timeline/TimelinePublic.vue index 1ee571b2..2193f0b2 100644 --- a/app/components/timeline/TimelinePublic.vue +++ b/app/components/timeline/TimelinePublic.vue @@ -7,9 +7,11 @@ function reorderAndFilter(items: mastodon.v1.Status[]) { return reorderedTimeline(items, 'public') } -let followedTags: mastodon.v1.Tag[] | undefined +let followedTags: mastodon.v1.Tag[] if (currentUser.value !== undefined) { - followedTags = (await useMasto().client.value.v1.followedTags.list({ limit: 0 })) + const { client } = useMasto() + const paginator = client.value.v1.followedTags.list() + followedTags = (await paginator.values().next()).value ?? [] } diff --git a/app/components/timeline/TimelinePublicLocal.vue b/app/components/timeline/TimelinePublicLocal.vue index 8a1312f4..f3514bfd 100644 --- a/app/components/timeline/TimelinePublicLocal.vue +++ b/app/components/timeline/TimelinePublicLocal.vue @@ -7,9 +7,11 @@ function reorderAndFilter(items: mastodon.v1.Status[]) { return reorderedTimeline(items, 'public') } -let followedTags: mastodon.v1.Tag[] | undefined +let followedTags: mastodon.v1.Tag[] if (currentUser.value !== undefined) { - followedTags = (await useMasto().client.value.v1.followedTags.list({ limit: 0 })) + const { client } = useMasto() + const paginator = client.value.v1.followedTags.list() + followedTags = (await paginator.values().next()).value ?? [] } diff --git a/app/pages/[[server]]/tags/[tag].vue b/app/pages/[[server]]/tags/[tag].vue index 913ccc27..b74c6c96 100644 --- a/app/pages/[[server]]/tags/[tag].vue +++ b/app/pages/[[server]]/tags/[tag].vue @@ -26,9 +26,11 @@ onReactivated(() => { refresh() }) -let followedTags: mastodon.v1.Tag[] | undefined +let followedTags: mastodon.v1.Tag[] if (currentUser.value !== undefined) { - followedTags = (await useMasto().client.value.v1.followedTags.list({ limit: 0 })) + const { client } = useMasto() + const paginator = client.value.v1.followedTags.list() + followedTags = (await paginator.values().next()).value ?? [] }