From dc9d72189fa9677f78eadcd8dc06ee97bde68a61 Mon Sep 17 00:00:00 2001 From: Ayo Date: Sat, 22 Nov 2025 19:16:04 +0100 Subject: [PATCH] fix: fetch of followed tags on public timelines --- app/components/timeline/TimelinePublic.vue | 6 ++++-- app/components/timeline/TimelinePublicLocal.vue | 6 ++++-- app/pages/[[server]]/tags/[tag].vue | 6 ++++-- 3 files changed, 12 insertions(+), 6 deletions(-) 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 ?? [] }