hide federated timeline by default

This commit is contained in:
uwaa 2025-01-25 04:21:55 +00:00
parent 63071ec203
commit d551e7f499
4 changed files with 12 additions and 1 deletions

View file

@ -146,6 +146,13 @@
{{ $t('settings.show_panel_nav_shortcuts') }}
</BooleanSetting>
</li>
<li>
<BooleanSetting
path="federatedTimelineVisible"
>
{{ $t('settings.show_federated_timeline') }}
</BooleanSetting>
</li>
<li>
<BooleanSetting
path="showWiderShortcuts"

View file

@ -754,6 +754,7 @@
"show_moderator_badge": "Show \"Moderator\" badge in my profile",
"show_nav_shortcuts": "Show extra navigation shortcuts in top panel",
"show_panel_nav_shortcuts": "Show timeline navigation shortcuts at the top of the panel",
"show_federated_timeline": "Show the \"Known Network\" tab",
"show_scrollbars": "Show side column's scrollbars",
"show_page_backgrounds": "Show page-specific backgrounds, e.g. for user profiles",
"show_wider_shortcuts": "Show wider gap between top panel shortcuts",

View file

@ -11,7 +11,9 @@ const currentUserOrTimelineVisibleUnauthenticated = (state, timeline) => (
const federatedTimelineAvailable = (state) => state.instance.federatedTimelineAvailable;
export const federatedTimelineVisible = (state) => (
federatedTimelineAvailable(state) && currentUserOrTimelineVisibleUnauthenticated(state, 'federated')
federatedTimelineAvailable(state) &&
currentUserOrTimelineVisibleUnauthenticated(state, 'federated') &&
state.config.federatedTimelineVisible
);
export const publicTimelineVisible = (state) => (

View file

@ -123,6 +123,7 @@ export const defaultState = {
userProfileDefaultTab: 'statuses',
useBlurhash: true,
overrideInstanceWallpaper: false,
federatedTimelineVisible: false,
}
// caching the instance default properties