From d551e7f499c169ed54730e2d3744a563e572baa9 Mon Sep 17 00:00:00 2001 From: uwaa Date: Sat, 25 Jan 2025 04:21:55 +0000 Subject: [PATCH] hide federated timeline by default --- src/components/settings_modal/tabs/general_tab.vue | 7 +++++++ src/i18n/en.json | 1 + src/lib/timeline_visibility.js | 4 +++- src/modules/config.js | 1 + 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/components/settings_modal/tabs/general_tab.vue b/src/components/settings_modal/tabs/general_tab.vue index 6bebae66..c6bebf84 100644 --- a/src/components/settings_modal/tabs/general_tab.vue +++ b/src/components/settings_modal/tabs/general_tab.vue @@ -146,6 +146,13 @@ {{ $t('settings.show_panel_nav_shortcuts') }} +
  • + + {{ $t('settings.show_federated_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) => ( diff --git a/src/modules/config.js b/src/modules/config.js index f2e27f79..ae370743 100644 --- a/src/modules/config.js +++ b/src/modules/config.js @@ -123,6 +123,7 @@ export const defaultState = { userProfileDefaultTab: 'statuses', useBlurhash: true, overrideInstanceWallpaper: false, + federatedTimelineVisible: false, } // caching the instance default properties