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
This commit is contained in:
Darius Kazemi
2023-01-13 07:43:17 -08:00
committed by GitHub
parent f33e22ae4c
commit d35fe3d5e3
3 changed files with 8 additions and 0 deletions

View File

@ -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