about summary refs log tree commit diff
path: root/app/views/admin/settings/discovery
diff options
context:
space:
mode:
authorDarius Kazemi <darius@meedan.com>2023-01-13 07:43:17 -0800
committerGitHub <noreply@github.com>2023-01-13 16:43:17 +0100
commitd35fe3d5e3a45629634edde4c3d2726262c4f57e (patch)
tree829112079a4403973902a013cb0b66d2d1801b92 /app/views/admin/settings/discovery
parentf33e22ae4c32d6a01b2e706bb0b55f961689f03f (diff)
Add peers API endpoint toggle to Server Settings (#22810)
* Add peers endpoint toggle to Server Settings

This places the toggle under "Discovery" and expands the hint text to explain further what the endpoint is used for. Added a "Recommended" tag since it was recommended in v3 before it was removed.

Fixes https://github.com/mastodon/mastodon/issues/22222

* i18n normalize step
Diffstat (limited to 'app/views/admin/settings/discovery')
-rw-r--r--app/views/admin/settings/discovery/show.html.haml5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/views/admin/settings/discovery/show.html.haml b/app/views/admin/settings/discovery/show.html.haml
index f60d1c766..17c9e93dd 100644
--- a/app/views/admin/settings/discovery/show.html.haml
+++ b/app/views/admin/settings/discovery/show.html.haml
@@ -29,6 +29,11 @@
   .fields-group
     = f.input :noindex, as: :boolean, wrapper: :with_label, label: t('admin.settings.default_noindex.title'), hint: t('admin.settings.default_noindex.desc_html')
 
+  %h4= t('admin.settings.discovery.publish_discovered_servers')
+
+  .fields-group
+    = f.input :peers_api_enabled, as: :boolean, wrapper: :with_label, recommended: :recommended
+
   %h4= t('admin.settings.discovery.follow_recommendations')
 
   .fields-group