From 4370ef7b1bafdcfa0bd8b19989254c0f95f750fa Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Tue, 9 Aug 2022 15:38:30 -0700 Subject: [PATCH] fix: :alembic: Attempt to fix routing --- packages/client/src/router.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/client/src/router.ts b/packages/client/src/router.ts index 89f89461c..0c85662e3 100644 --- a/packages/client/src/router.ts +++ b/packages/client/src/router.ts @@ -3,9 +3,10 @@ import { Router } from '@/nirax'; import { $i, iAmModerator } from '@/account'; import MkLoading from '@/pages/_loading_.vue'; import MkError from '@/pages/_error_.vue'; +import { api } from '@/os'; import { ui } from '@/config'; -// const guestTimeline = nodeinfo.meta.enableGuestTimeline; +const guestTimeline = await api('meta', { detail: false }).enableGuestTimeline; const page = (loader: AsyncComponentLoader) => defineAsyncComponent({ loader: loader, @@ -458,7 +459,7 @@ export const routes = [{ }, { path: '/timeline', component: page(() => import('./pages/timeline.vue')), - // loginRequired: guestTimeline, + loginRequired: guestTimeline, }, { name: 'index', path: '/',