From 699ee0891ddb8d788cff77366ee8ac73eb4b02f9 Mon Sep 17 00:00:00 2001 From: scarlett Date: Tue, 4 Sep 2018 00:48:14 +0100 Subject: [PATCH] Changeable defaults for hideUserStats and hidePostStats --- src/main.js | 4 ++++ static/config.json | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index 132029dc49..c69ca6c3f6 100644 --- a/src/main.js +++ b/src/main.js @@ -123,6 +123,8 @@ window.fetch('/api/statusnet/config.json') var scopeOptionsEnabled = (config.scopeOptionsEnabled) var formattingOptionsEnabled = (config.formattingOptionsEnabled) var collapseMessageWithSubject = (config.collapseMessageWithSubject) + var hidePostStats = (config.hidePostStats) + var hideUserStats = (config.hideUserStats) store.dispatch('setOption', { name: 'theme', value: theme }) store.dispatch('setOption', { name: 'background', value: background }) @@ -136,6 +138,8 @@ window.fetch('/api/statusnet/config.json') store.dispatch('setOption', { name: 'scopeOptionsEnabled', value: scopeOptionsEnabled }) store.dispatch('setOption', { name: 'formattingOptionsEnabled', value: formattingOptionsEnabled }) store.dispatch('setOption', { name: 'collapseMessageWithSubject', value: collapseMessageWithSubject }) + store.dispatch('setOption', { name: 'hidePostStats', value: hidePostStats }) + store.dispatch('setOption', { name: 'hideUserStats', value: hideUserStats }) if (chatDisabled) { store.dispatch('disableChat') } diff --git a/static/config.json b/static/config.json index 144fe951c2..a6eace0f8d 100644 --- a/static/config.json +++ b/static/config.json @@ -10,5 +10,7 @@ "showInstanceSpecificPanel": false, "scopeOptionsEnabled": false, "formattingOptionsEnabled": false, - "collapseMessageWithSubject": false + "collapseMessageWithSubject": false, + "hidePostStats": false, + "hideUserStats": false }