diff options
| author | dave <starpumadev@gmail.com> | 2019-03-26 10:52:46 -0400 |
|---|---|---|
| committer | dave <starpumadev@gmail.com> | 2019-03-26 10:52:46 -0400 |
| commit | 5fd589d5e717bbcbc46db5efb35878b993b6dfbc (patch) | |
| tree | 86691b1fa39bbd909307cd4f5eca368bde375661 /src/boot | |
| parent | 13e727b5eebb60330bc87c7ccc70109683c5b963 (diff) | |
| parent | 2f1e69047882a1fc36f87dc1fff752bc76e61fa4 (diff) | |
merge develop & resolve conflict
Diffstat (limited to 'src/boot')
| -rw-r--r-- | src/boot/after_store.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/boot/after_store.js b/src/boot/after_store.js index 0a4ec857..f5e84cbc 100644 --- a/src/boot/after_store.js +++ b/src/boot/after_store.js @@ -97,6 +97,7 @@ const setSettings = async ({ apiConfig, staticConfig, store }) => { copyInstanceOption('showInstanceSpecificPanel') copyInstanceOption('scopeOptionsEnabled') copyInstanceOption('formattingOptionsEnabled') + copyInstanceOption('hideMutedPosts') copyInstanceOption('collapseMessageWithSubject') copyInstanceOption('loginMethod') copyInstanceOption('scopeCopy') @@ -203,6 +204,12 @@ const getNodeInfo = async ({ store }) => { const suggestions = metadata.suggestions store.dispatch('setInstanceOption', { name: 'suggestionsEnabled', value: suggestions.enabled }) store.dispatch('setInstanceOption', { name: 'suggestionsWeb', value: suggestions.web }) + + const software = data.software + store.dispatch('setInstanceOption', { name: 'backendVersion', value: software.version }) + + const frontendVersion = window.___pleromafe_commit_hash + store.dispatch('setInstanceOption', { name: 'frontendVersion', value: frontendVersion }) } else { throw (res) } |
