From 9daecc27a536cdad20f90a2e7e060a5ca0790cc6 Mon Sep 17 00:00:00 2001 From: Marie Date: Fri, 1 Nov 2024 12:50:54 +0000 Subject: [PATCH] upd: lock following-feed behind loginRequired and check if user has moved instances --- packages/frontend/src/navbar.ts | 1 + packages/frontend/src/router/definition.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/frontend/src/navbar.ts b/packages/frontend/src/navbar.ts index 8b45eb50e7..6f236dc89e 100644 --- a/packages/frontend/src/navbar.ts +++ b/packages/frontend/src/navbar.ts @@ -71,6 +71,7 @@ export const navbarItemDef = reactive({ following: { title: i18n.ts.following, icon: 'ph-user-check ph-bold ph-lg', + show: computed(() => $i != null && !$i.movedTo), to: '/following-feed', }, lists: { diff --git a/packages/frontend/src/router/definition.ts b/packages/frontend/src/router/definition.ts index aab4bf5d44..686ac6920a 100644 --- a/packages/frontend/src/router/definition.ts +++ b/packages/frontend/src/router/definition.ts @@ -229,10 +229,11 @@ const routes: RouteDef[] = [{ }, { path: '/following-feed', component: page(() => import('@/pages/following-feed.vue')), - hash: 'initialTab', + loginRequired: true, }, { path: '/following-feed/:userId', component: page(() => import('@/pages/user/recent-notes.vue')), + loginRequired: true, }, { path: '/search', component: page(() => import('@/pages/search.vue')),