merge: Hide Following Feed from guest users/logged out users and also don't show the button for migrated accounts (!721)

View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/721

Closes #787

Approved-by: Amber Null <puppygirlhornyposting@gmail.com>
Approved-by: dakkar <dakkar@thenautilus.net>
This commit is contained in:
dakkar 2024-11-01 17:33:39 +00:00
commit 8b16b0fce9
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')),