Move glitch-soc's “Hide followers count” setting to “Show followers count” under “Privacy and reach” tab

This commit is contained in:
Claire
2023-08-22 19:02:02 +02:00
parent c053bfc45a
commit 452f15be78
4 changed files with 7 additions and 6 deletions

View File

@@ -20,6 +20,7 @@ class UserSettings
setting :hide_followers_count, default: false
setting_inverse_alias :indexable, :noindex
setting_inverse_alias :show_followers_count, :hide_followers_count
namespace :web do
setting :advanced_layout, default: false

View File

@@ -11,10 +11,6 @@
.fields-group
= ff.input :aggregate_reblogs, wrapper: :with_label, recommended: true, label: I18n.t('simple_form.labels.defaults.setting_aggregate_reblogs'), hint: I18n.t('simple_form.hints.defaults.setting_aggregate_reblogs')
- unless Setting.hide_followers_count
.fields-group
= ff.input :hide_followers_count, wrapper: :with_label, label: I18n.t('simple_form.labels.defaults.setting_hide_followers_count'), glitch_only: true
%h4= t 'preferences.posting_defaults'
.fields-row

View File

@@ -36,6 +36,10 @@
= f.input :show_collections, as: :boolean, wrapper: :with_label
= f.simple_fields_for :settings, current_user.settings do |ff|
- unless Setting.hide_followers_count
.fields-group
= ff.input :show_followers_count, wrapper: :with_label, label: I18n.t('simple_form.labels.defaults.setting_show_followers_count'), hint: I18n.t('simple_form.hints.defaults.setting_show_followers_count'), glitch_only: true
.fields-group
= ff.input :show_application, wrapper: :with_label