upd: lock following-feed behind loginRequired and check if user has moved instances

This commit is contained in:
Marie 2024-11-01 12:50:54 +00:00
parent 1520bc1715
commit 9daecc27a5
2 changed files with 3 additions and 1 deletions

View file

@ -71,6 +71,7 @@ export const navbarItemDef = reactive({
following: { following: {
title: i18n.ts.following, title: i18n.ts.following,
icon: 'ph-user-check ph-bold ph-lg', icon: 'ph-user-check ph-bold ph-lg',
show: computed(() => $i != null && !$i.movedTo),
to: '/following-feed', to: '/following-feed',
}, },
lists: { lists: {

View file

@ -229,10 +229,11 @@ const routes: RouteDef[] = [{
}, { }, {
path: '/following-feed', path: '/following-feed',
component: page(() => import('@/pages/following-feed.vue')), component: page(() => import('@/pages/following-feed.vue')),
hash: 'initialTab', loginRequired: true,
}, { }, {
path: '/following-feed/:userId', path: '/following-feed/:userId',
component: page(() => import('@/pages/user/recent-notes.vue')), component: page(() => import('@/pages/user/recent-notes.vue')),
loginRequired: true,
}, { }, {
path: '/search', path: '/search',
component: page(() => import('@/pages/search.vue')), component: page(() => import('@/pages/search.vue')),