forked from AkkomaGang/akkoma-fe
Add fallback in case BE does not report federating status in nodeinfo
This commit is contained in:
parent
0743fbb28b
commit
8d14036a23
2 changed files with 2 additions and 2 deletions
|
@ -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: {
|
||||
|
|
Loading…
Reference in a new issue