aboutsummaryrefslogtreecommitdiff
path: root/src/main.js
diff options
context:
space:
mode:
authorkaniini <nenolod@gmail.com>2018-08-24 23:00:56 +0000
committerkaniini <nenolod@gmail.com>2018-08-24 23:00:56 +0000
commitfe906cc3f0c8388bcb2a33be9c72ca5365bde0a5 (patch)
treea92128b2779b3971d15699b4410c37687446d480 /src/main.js
parent13acdc4a00f7c4e8487de0c95fe69ff110f13e6e (diff)
parent55650ff7ea9867cdb8adf7077b36bbb8c7bfcb75 (diff)
Merge branch 'develop' into 'notifications'
# Conflicts: # src/main.js
Diffstat (limited to 'src/main.js')
-rw-r--r--src/main.js10
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 })
+ })
+