From 81675930eb93ae352519d7b584bf4c7e7ef56701 Mon Sep 17 00:00:00 2001 From: ayo Date: Mon, 28 Apr 2025 10:32:05 +0200 Subject: [PATCH] fix: fetch for followed tags needs authorized session (#3277) --- components/timeline/TimelineHome.vue | 5 ++++- components/timeline/TimelinePaginator.vue | 2 +- components/timeline/TimelinePublic.vue | 5 ++++- components/timeline/TimelinePublicLocal.vue | 5 ++++- pages/[[server]]/tags/[tag].vue | 8 +++++++- 5 files changed, 20 insertions(+), 5 deletions(-) diff --git a/components/timeline/TimelineHome.vue b/components/timeline/TimelineHome.vue index 6ea6d2f3..2c35fcf8 100644 --- a/components/timeline/TimelineHome.vue +++ b/components/timeline/TimelineHome.vue @@ -11,7 +11,10 @@ function reorderAndFilter(items: mastodon.v1.Status[]) { return reorderedTimeline(items, 'home') } -const followedTags = (await useMasto().client.value.v1.followedTags.list({ limit: 0 })) +let followedTags: mastodon.v1.Tag[] | undefined +if (currentUser.value !== undefined) { + followedTags = (await useMasto().client.value.v1.followedTags.list({ limit: 0 })) +}