Use a centralized fallback for missing values and use instance.federating instead of

instance.federation.enabled
This commit is contained in:
Mark Felder 2019-12-12 15:29:50 -06:00
parent 8d14036a23
commit d899d06973
3 changed files with 8 additions and 2 deletions

View file

@ -228,6 +228,12 @@ const getNodeInfo = async ({ store }) => {
const federation = metadata.federation
store.dispatch('setInstanceOption', { name: 'federationPolicy', value: federation })
store.dispatch('setInstanceOption', {
name: 'federating',
value: typeof federation.enabled === 'undefined'
? true
: federation.enabled
})
const accounts = metadata.staffAccounts
await resolveStaffAccounts({ store, accounts })