From 31646d9dbc616b0ff3afa56202b32998ec5564fd Mon Sep 17 00:00:00 2001 From: anatawa12 Date: Sat, 19 Oct 2024 03:22:53 +0900 Subject: [PATCH] fix: unable to see VRTL when logged out --- packages/frontend/src/pages/timeline.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/frontend/src/pages/timeline.vue b/packages/frontend/src/pages/timeline.vue index 1cb43de58736..9d03ce23dbae 100644 --- a/packages/frontend/src/pages/timeline.vue +++ b/packages/frontend/src/pages/timeline.vue @@ -64,7 +64,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' | 'global' | 'vmimi-relay'>(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', 'global', 'vmimi-relay'].includes(newSrc)) { + srcWhenNotSignin.value = newSrc as 'local' | 'global' | 'vmimi-relay'; } }