From af3b525442a8cfd6bdb6d3acc794a6e87e3e279f Mon Sep 17 00:00:00 2001 From: Ed Poe Date: Wed, 16 Nov 2022 14:31:06 -0500 Subject: [PATCH] Clean feature branch creating new showPublicExternalTimeline value and depending on it for display of public external timeline links --- src/App.js | 1 + src/components/desktop_nav/desktop_nav.vue | 1 + src/components/timeline_menu/timeline_menu_content.vue | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index d4b3b41a..fa67318f 100644 --- a/src/App.js +++ b/src/App.js @@ -92,6 +92,7 @@ export default { editingAvailable () { return this.$store.state.instance.editingAvailable }, layoutType () { return this.$store.state.interface.layoutType }, privateMode () { return this.$store.state.instance.private }, + showPublicExternalTimeline () {return currentUser() || !(privateMode || this.$store.state.instance.restrict_unauthenticated.timelines.federated) }, reverseLayout () { const { thirdColumnMode, sidebarRight: reverseSetting } = this.$store.getters.mergedConfig if (this.layoutType !== 'wide') { diff --git a/src/components/desktop_nav/desktop_nav.vue b/src/components/desktop_nav/desktop_nav.vue index 92d3fa5b..8105a351 100644 --- a/src/components/desktop_nav/desktop_nav.vue +++ b/src/components/desktop_nav/desktop_nav.vue @@ -67,6 +67,7 @@ /> diff --git a/src/components/timeline_menu/timeline_menu_content.vue b/src/components/timeline_menu/timeline_menu_content.vue index 27aece22..a630aa71 100644 --- a/src/components/timeline_menu/timeline_menu_content.vue +++ b/src/components/timeline_menu/timeline_menu_content.vue @@ -48,7 +48,7 @@ >{{ $t("nav.public_tl") }} -
  • +