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 })) +}