Merge branch 'develop' into 'notifications'
# Conflicts: # src/main.js
This commit is contained in:
commit
fe906cc3f0
16 changed files with 224 additions and 101 deletions
10
src/main.js
10
src/main.js
|
@ -49,6 +49,7 @@ const persistedStateOptions = {
|
|||
'config.hideAttachments',
|
||||
'config.hideAttachmentsInConv',
|
||||
'config.hideNsfw',
|
||||
'config.replyVisibility',
|
||||
'config.autoLoad',
|
||||
'config.hoverPreview',
|
||||
'config.streaming',
|
||||
|
@ -192,3 +193,12 @@ window.fetch('/instance/panel.html')
|
|||
.then((html) => {
|
||||
store.dispatch('setOption', { name: 'instanceSpecificPanelContent', value: html })
|
||||
})
|
||||
|
||||
window.fetch('/nodeinfo/2.0.json')
|
||||
.then((res) => res.json())
|
||||
.then((data) => {
|
||||
const suggestions = data.metadata.suggestions
|
||||
store.dispatch('setOption', { name: 'suggestionsEnabled', value: suggestions.enabled })
|
||||
store.dispatch('setOption', { name: 'suggestionsWeb', value: suggestions.web })
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue