summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaniini <nenolod@gmail.com>2018-10-23 00:50:28 +0000
committerkaniini <nenolod@gmail.com>2018-10-23 00:50:28 +0000
commitbcae57afd2f932db4b3c4ee28428ed101f0fec1f (patch)
treeebeb88dfb514e027e9a35876046ba47869cdbe61
parentaaf3fc1575badd13ccbce267895492fa0b708bbb (diff)
parent3e79d941c81e741c1268523db23a9024ca67bd29 (diff)
downloadpleroma-bcae57afd2f932db4b3c4ee28428ed101f0fec1f.tar.gz
pleroma-bcae57afd2f932db4b3c4ee28428ed101f0fec1f.zip
Merge branch 'new-frontend-options' into 'develop'
New frontend options See merge request pleroma/pleroma!383
-rw-r--r--config/config.exs4
-rw-r--r--lib/pleroma/web/twitter_api/controllers/util_controller.ex4
2 files changed, 6 insertions, 2 deletions
diff --git a/config/config.exs b/config/config.exs
index e5f0b4f6f..225ca914a 100644
--- a/config/config.exs
+++ b/config/config.exs
@@ -121,7 +121,9 @@ config :pleroma, :fe,
show_instance_panel: true,
scope_options_enabled: false,
formatting_options_enabled: false,
- collapse_message_with_subject: false
+ collapse_message_with_subject: false,
+ hide_post_stats: false,
+ hide_user_stats: false
config :pleroma, :activitypub,
accept_blocks: true,
diff --git a/lib/pleroma/web/twitter_api/controllers/util_controller.ex b/lib/pleroma/web/twitter_api/controllers/util_controller.ex
index 109704d00..01cd17121 100644
--- a/lib/pleroma/web/twitter_api/controllers/util_controller.ex
+++ b/lib/pleroma/web/twitter_api/controllers/util_controller.ex
@@ -177,7 +177,9 @@ defmodule Pleroma.Web.TwitterAPI.UtilController do
showInstanceSpecificPanel: Keyword.get(@instance_fe, :show_instance_panel),
scopeOptionsEnabled: Keyword.get(@instance_fe, :scope_options_enabled),
formattingOptionsEnabled: Keyword.get(@instance_fe, :formatting_options_enabled),
- collapseMessageWithSubject: Keyword.get(@instance_fe, :collapse_message_with_subject)
+ collapseMessageWithSubject: Keyword.get(@instance_fe, :collapse_message_with_subject),
+ hidePostStats: Keyword.get(@instance_fe, :hide_post_stats),
+ hideUserStats: Keyword.get(@instance_fe, :hide_user_stats)
}
managed_config = Keyword.get(@instance, :managed_config)