about summary refs log tree commit diff
path: root/app/views
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2021-08-20 16:11:58 +0200
committerGitHub <noreply@github.com>2021-08-20 16:11:58 +0200
commit3c45dfa0fe89a62a0320cf0e2d45bf86263f6cb5 (patch)
tree06cbb7bad52c5c8f81ea468baaee15fd1758505e /app/views
parenta2afcac7d9d55860f62f2f27475cd5a059090505 (diff)
Fix “discoverable” account setting being tied to profile directory (#16637)
Diffstat (limited to 'app/views')
-rw-r--r--app/views/settings/profiles/show.html.haml5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/views/settings/profiles/show.html.haml b/app/views/settings/profiles/show.html.haml
index 4885878f0..d325a9ea5 100644
--- a/app/views/settings/profiles/show.html.haml
+++ b/app/views/settings/profiles/show.html.haml
@@ -29,9 +29,8 @@
   .fields-group
     = f.input :bot, as: :boolean, wrapper: :with_label, hint: t('simple_form.hints.defaults.bot')
 
-  - if Setting.profile_directory
-    .fields-group
-      = f.input :discoverable, as: :boolean, wrapper: :with_label, hint: t('simple_form.hints.defaults.discoverable'), recommended: true
+  .fields-group
+    = f.input :discoverable, as: :boolean, wrapper: :with_label, hint: t(Setting.profile_directory ? 'simple_form.hints.defaults.discoverable' : 'simple_form.hints.defaults.discoverable_no_directory'), recommended: true
 
   %hr.spacer/