This commit is contained in:
Henry Jameson 2025-06-18 19:55:43 +03:00
commit ad2689a5eb
2 changed files with 5 additions and 4 deletions

View file

@ -15,8 +15,8 @@ export const filterNavigation = (list = [], {
if ((!currentUser || !currentUser.locked) && set.has('lockedUser')) return false if ((!currentUser || !currentUser.locked) && set.has('lockedUser')) return false
if (!hasChats && set.has('chats')) return false if (!hasChats && set.has('chats')) return false
if (!hasAnnouncements && set.has('announcements')) return false if (!hasAnnouncements && set.has('announcements')) return false
if (supportsBookmarkFolders && set.has('!supportsBookmarkFolders')) return false if (!supportsBookmarkFolders && set.has('supportsBookmarkFolders')) return false
if (supportsBubbleTimeline && set.has('!supportsBubbleTimeline')) return false if (!supportsBubbleTimeline && set.has('supportsBubbleTimeline')) return false
return true return true
}) })
} }

View file

@ -29,9 +29,10 @@ export const TIMELINES = {
}, },
bubble: { bubble: {
route: 'bubble', route: 'bubble',
anon: true,
icon: 'city', icon: 'city',
label: 'nav.bubble', label: 'nav.bubble',
criteria: ['supportsBubbleTimeline'] criteria: ['!private', 'federating', 'supportsBubbleTimeline']
}, },
twkn: { twkn: {
route: 'public-external-timeline', route: 'public-external-timeline',
@ -44,7 +45,7 @@ export const TIMELINES = {
route: 'bookmarks', route: 'bookmarks',
icon: 'bookmark', icon: 'bookmark',
label: 'nav.bookmarks', label: 'nav.bookmarks',
criteria: ['!supportsBookmarkFolders'] criteria: ['supportsBookmarkFolders']
}, },
favorites: { favorites: {
routeObject: { name: 'user-profile', query: { tab: 'favorites' } }, routeObject: { name: 'user-profile', query: { tab: 'favorites' } },