diff options
| author | kaniini <nenolod@gmail.com> | 2018-08-24 23:00:56 +0000 |
|---|---|---|
| committer | kaniini <nenolod@gmail.com> | 2018-08-24 23:00:56 +0000 |
| commit | fe906cc3f0c8388bcb2a33be9c72ca5365bde0a5 (patch) | |
| tree | a92128b2779b3971d15699b4410c37687446d480 /src/main.js | |
| parent | 13acdc4a00f7c4e8487de0c95fe69ff110f13e6e (diff) | |
| parent | 55650ff7ea9867cdb8adf7077b36bbb8c7bfcb75 (diff) | |
Merge branch 'develop' into 'notifications'
# Conflicts:
# src/main.js
Diffstat (limited to 'src/main.js')
| -rw-r--r-- | src/main.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main.js b/src/main.js index d4fbaa7b..87dc49df 100644 --- a/src/main.js +++ b/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 }) + }) + |
