Use a centralized fallback for missing values and use instance.federating instead of
instance.federation.enabled
This commit is contained in:
parent
8d14036a23
commit
d899d06973
3 changed files with 8 additions and 2 deletions
|
@ -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 })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue