mirror of
https://git.pleroma.social/sjw/pleroma-fe.git
synced 2024-12-23 14:05:16 +01:00
after_store: Fix failing to parse nodeinfo when mrf transparency is
disabled Closes #772
This commit is contained in:
parent
21f6120e9d
commit
0dcc3bf2fe
@ -221,9 +221,16 @@ const getNodeInfo = async ({ store }) => {
|
|||||||
|
|
||||||
const frontendVersion = window.___pleromafe_commit_hash
|
const frontendVersion = window.___pleromafe_commit_hash
|
||||||
store.dispatch('setInstanceOption', { name: 'frontendVersion', value: frontendVersion })
|
store.dispatch('setInstanceOption', { name: 'frontendVersion', value: frontendVersion })
|
||||||
store.dispatch('setInstanceOption', { name: 'tagPolicyAvailable', value: metadata.federation.mrf_policies.includes('TagPolicy') })
|
|
||||||
|
|
||||||
const federation = metadata.federation
|
const federation = metadata.federation
|
||||||
|
|
||||||
|
store.dispatch('setInstanceOption', {
|
||||||
|
name: 'tagPolicyAvailable',
|
||||||
|
value: typeof federation.mrf_policies === 'undefined'
|
||||||
|
? false
|
||||||
|
: metadata.federation.mrf_policies.includes('TagPolicy')
|
||||||
|
})
|
||||||
|
|
||||||
store.dispatch('setInstanceOption', { name: 'federationPolicy', value: federation })
|
store.dispatch('setInstanceOption', { name: 'federationPolicy', value: federation })
|
||||||
store.dispatch('setInstanceOption', {
|
store.dispatch('setInstanceOption', {
|
||||||
name: 'federating',
|
name: 'federating',
|
||||||
|
Loading…
Reference in New Issue
Block a user