Commit 8d14036a authored by feld's avatar feld

Add fallback in case BE does not report federating status in nodeinfo

parent 0743fbb2
Pipeline #21104 passed with stages
in 3 minutes and 58 seconds
......@@ -11,7 +11,7 @@ const NavPanel = {
chat: state => state.chat.channel,
followRequestCount: state => state.api.followRequests.length,
privateMode: state => state.instance.private,
federating: state => state.instance.federationPolicy.enabled
federating: state => state.instance.federationPolicy.enabled || state.instance.federationPolicy.enabled !== false
})
}
......
......@@ -46,7 +46,7 @@ const SideDrawer = {
return this.$store.state.instance.private
},
federating () {
return this.$store.state.instance.federationPolicy.enabled
return this.$store.state.instance.federationPolicy.enabled || this.$store.state.instance.federationPolicy.enabled !== false
}
},
methods: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment