From 3d27e5ce3e62c1c246a41913519e2e10b02d1dbe Mon Sep 17 00:00:00 2001 From: Marie Date: Tue, 25 Mar 2025 22:40:19 +0100 Subject: [PATCH] fix: bubble timeline not being selectable when logged out --- locales/index.d.ts | 4 ++-- packages/frontend/src/pages/timeline.vue | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/locales/index.d.ts b/locales/index.d.ts index 4f75e0997c..25bb43de22 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -8551,7 +8551,7 @@ export interface Locale extends ILocale { */ "write:admin:nsfw-user": string; /** - * Mark users an not NSFW + * Mark users as not NSFW */ "write:admin:unnsfw-user": string; /** @@ -10243,7 +10243,7 @@ export interface Locale extends ILocale { */ "setRemoteInstanceNSFW": string; /** - * Set remote instance as NSFW + * Unset remote instance as NSFW */ "unsetRemoteInstanceNSFW": string; /** diff --git a/packages/frontend/src/pages/timeline.vue b/packages/frontend/src/pages/timeline.vue index 032a19a6eb..228764abfd 100644 --- a/packages/frontend/src/pages/timeline.vue +++ b/packages/frontend/src/pages/timeline.vue @@ -68,7 +68,7 @@ const rootEl = shallowRef(); type TimelinePageSrc = BasicTimelineType | `list:${string}`; const queue = ref(0); -const srcWhenNotSignin = ref<'local' | 'global'>(isAvailableBasicTimeline('local') ? 'local' : 'global'); +const srcWhenNotSignin = ref<'local' | 'bubble' | 'global'>(isAvailableBasicTimeline('local') ? 'local' : 'global'); const src = computed({ get: () => ($i ? defaultStore.reactiveState.tl.value.src : srcWhenNotSignin.value), set: (x) => saveSrc(x), @@ -212,8 +212,8 @@ function saveSrc(newSrc: TimelinePageSrc): void { } defaultStore.set('tl', out); - if (['local', 'global'].includes(newSrc)) { - srcWhenNotSignin.value = newSrc as 'local' | 'global'; + if (['local', 'bubble', 'global'].includes(newSrc)) { + srcWhenNotSignin.value = newSrc as 'local' | 'bubble' | 'global'; } }