Expose `skip_thread_containment` in nodeinfo
authorEugenij <eugenijm@protonmail.com>
Wed, 3 Jul 2019 18:35:57 +0000 (18:35 +0000)
committerrinpatch <rinpatch@sdf.org>
Wed, 3 Jul 2019 18:35:57 +0000 (18:35 +0000)
CHANGELOG.md
lib/pleroma/web/nodeinfo/nodeinfo_controller.ex

index aefc0917782f043de7fd99cc7b941a9a78c5f394..3dbbd822579e1266c2a1e78f8b03b81c8316cafa 100644 (file)
@@ -17,6 +17,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
 ### Changed
 - Configuration: Filter.AnonymizeFilename added ability to retain file extension with custom text
 
+### Changed
+- NodeInfo: Return `skipThreadContainment` in `metadata` for the `skip_thread_containment` option
+
 ## [1.0.0] - 2019-06-29
 ### Security
 - Mastodon API: Fix display names not being sanitized
index 32be430b7691aa31ab695893456362a3d953cafe..869dda5c5cd3d44eac41aa853ff23d92b1332e8e 100644 (file)
@@ -162,7 +162,8 @@ defmodule Pleroma.Web.Nodeinfo.NodeinfoController do
         accountActivationRequired: Config.get([:instance, :account_activation_required], false),
         invitesEnabled: Config.get([:instance, :invites_enabled], false),
         features: features,
-        restrictedNicknames: Config.get([Pleroma.User, :restricted_nicknames])
+        restrictedNicknames: Config.get([Pleroma.User, :restricted_nicknames]),
+        skipThreadContainment: Config.get([:instance, :skip_thread_containment], false)
       }
     }
   end