Add new frontend options to server-side config.
authorscarlett <nia@netbsd.org>
Mon, 10 Dec 2018 23:15:01 +0000 (23:15 +0000)
committerscarlett <nia@netbsd.org>
Mon, 10 Dec 2018 23:15:01 +0000 (23:15 +0000)
config/config.exs
lib/pleroma/web/twitter_api/controllers/util_controller.ex

index 8d2fdd40d7ba10de9abdd44c3160a2ae5994cb33..1401b0a3dadabe90c276c04b97df163aee154c11 100644 (file)
@@ -126,7 +126,10 @@ config :pleroma, :fe,
   formatting_options_enabled: false,
   collapse_message_with_subject: false,
   hide_post_stats: false,
-  hide_user_stats: false
+  hide_user_stats: false,
+  scope_copy: true,
+  subject_line_behavior: "email",
+  always_show_subject_input: true
 
 config :pleroma, :activitypub,
   accept_blocks: true,
index 0ed519ea64a5921da14a4cdb8ef41790f24f23eb..b1e4c77e86ad4b0a361218fa0588c714b1cb3408 100644 (file)
@@ -183,7 +183,10 @@ defmodule Pleroma.Web.TwitterAPI.UtilController do
           formattingOptionsEnabled: Keyword.get(instance_fe, :formatting_options_enabled),
           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)
+          hideUserStats: Keyword.get(instance_fe, :hide_user_stats),
+          scopeCopy: Keyword.get(instance_fe, :scope_copy),
+          subjectLineBehavior: Keyword.get(instance_fe, :subject_line_behavior),
+          alwaysShowSubjectInput: Keyword.get(instance_fe, :always_show_subject_input)
         }
 
         managed_config = Keyword.get(instance, :managed_config)