From 714e68db38b4fe115cf96fd7b9805909c4319b67 Mon Sep 17 00:00:00 2001 From: prplecake Date: Sun, 11 Dec 2022 00:27:44 -0600 Subject: [PATCH] Add noindex setting to Admin settings Discovery page (#22205) * Add noindex setting to Admin settings Discovery page * Replace default_noindex i18n --- app/views/admin/settings/discovery/show.html.haml | 3 +++ config/locales/en.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/app/views/admin/settings/discovery/show.html.haml b/app/views/admin/settings/discovery/show.html.haml index b429cdd7b5..f60d1c7662 100644 --- a/app/views/admin/settings/discovery/show.html.haml +++ b/app/views/admin/settings/discovery/show.html.haml @@ -26,6 +26,9 @@ .fields-group = f.input :timeline_preview, as: :boolean, wrapper: :with_label + .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.follow_recommendations') .fields-group diff --git a/config/locales/en.yml b/config/locales/en.yml index 1cc53dca4b..a045db1ab1 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -704,6 +704,9 @@ en: content_retention: preamble: Control how user-generated content is stored in Mastodon. title: Content retention + default_noindex: + desc_html: Affects all users who have not changed this setting themselves + title: Opt users out of search engine indexing by default discovery: follow_recommendations: Follow recommendations preamble: Surfacing interesting content is instrumental in onboarding new users who may not know anyone Mastodon. Control how various discovery features work on your server.