diff --git a/src/boot/after_store.js b/src/boot/after_store.js
index 36b087a5..bba3e597 100644
--- a/src/boot/after_store.js
+++ b/src/boot/after_store.js
@@ -322,6 +322,8 @@ const getNodeInfo = async ({ store }) => {
: federation.enabled
})
+ store.dispatch('setInstanceOption', { name: 'publicTimelineVisibility', value: metadata.publicTimelineVisibility })
+
const accountActivationRequired = metadata.accountActivationRequired
store.dispatch('setInstanceOption', { name: 'accountActivationRequired', value: accountActivationRequired })
diff --git a/src/components/desktop_nav/desktop_nav.js b/src/components/desktop_nav/desktop_nav.js
index f4900c38..4cf5a477 100644
--- a/src/components/desktop_nav/desktop_nav.js
+++ b/src/components/desktop_nav/desktop_nav.js
@@ -19,6 +19,7 @@ import {
faInfoCircle,
faUserTie
} from '@fortawesome/free-solid-svg-icons'
+import { mapState } from 'vuex'
library.add(
faSignInAlt,
@@ -103,7 +104,10 @@ export default {
},
showBubbleTimeline () {
return this.$store.state.instance.localBubbleInstances.length > 0
- }
+ },
+ ...mapState({
+ publicTimelineVisibility: state => state.instance.publicTimelineVisibility,
+ })
},
methods: {
scrollToTop () {
diff --git a/src/components/desktop_nav/desktop_nav.vue b/src/components/desktop_nav/desktop_nav.vue
index 92d3fa5b..a41e9972 100644
--- a/src/components/desktop_nav/desktop_nav.vue
+++ b/src/components/desktop_nav/desktop_nav.vue
@@ -46,6 +46,7 @@