API: show info about privileged staff in instance metadata
authorAlibek Omarov <a1ba.omarov@gmail.com>
Sun, 26 Dec 2021 23:28:09 +0000 (02:28 +0300)
committerAlibek Omarov <a1ba.omarov@gmail.com>
Sun, 26 Dec 2021 23:28:09 +0000 (02:28 +0300)
lib/pleroma/web/mastodon_api/views/instance_view.ex
lib/pleroma/web/nodeinfo/nodeinfo.ex

index 7072d5d61b1489a88e705496ef01a3f31afe823f..8e657ee0f379acddeacbfc69ba2c2031282e778d 100644 (file)
@@ -45,7 +45,8 @@ defmodule Pleroma.Web.MastodonAPI.InstanceView do
           features: features(),
           federation: federation(),
           fields_limits: fields_limits(),
-          post_formats: Config.get([:instance, :allowed_post_formats])
+          post_formats: Config.get([:instance, :allowed_post_formats]),
+          privileged_staff: Config.get([:instance, :privileged_staff])
         },
         stats: %{mau: Pleroma.User.active_user_count()},
         vapid_public_key: Keyword.get(Pleroma.Web.Push.vapid_config(), :public_key)
index 3781781c849ae3ad8618bd0c8ddc00edd2fb5f8d..80a2ce67681c4f9b07de3b79c9430de0f9eee75f 100644 (file)
@@ -69,7 +69,8 @@ defmodule Pleroma.Web.Nodeinfo.Nodeinfo do
         mailerEnabled: Config.get([Pleroma.Emails.Mailer, :enabled], false),
         features: features,
         restrictedNicknames: Config.get([Pleroma.User, :restricted_nicknames]),
-        skipThreadContainment: Config.get([:instance, :skip_thread_containment], false)
+        skipThreadContainment: Config.get([:instance, :skip_thread_containment], false),
+        privilegedStaff: Config.get([:instance, :privileged_staff])
       }
     }
   end