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 :hide_followers_count, default: false
setting_inverse_alias :indexable, :noindex setting_inverse_alias :indexable, :noindex
setting_inverse_alias :show_followers_count, :hide_followers_count
namespace :web do namespace :web do
setting :advanced_layout, default: false setting :advanced_layout, default: false

View File

@ -11,10 +11,6 @@
.fields-group .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') = 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' %h4= t 'preferences.posting_defaults'
.fields-row .fields-row

View File

@ -36,6 +36,10 @@
= f.input :show_collections, as: :boolean, wrapper: :with_label = f.input :show_collections, as: :boolean, wrapper: :with_label
= f.simple_fields_for :settings, current_user.settings do |ff| = 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 .fields-group
= ff.input :show_application, wrapper: :with_label = ff.input :show_application, wrapper: :with_label

View File

@ -8,7 +8,7 @@ en:
setting_default_content_type_markdown: When writing toots, assume they are using Markdown for rich text formatting, unless specified otherwise setting_default_content_type_markdown: When writing toots, assume they are using Markdown for rich text formatting, unless specified otherwise
setting_default_content_type_plain: When writing toots, assume they are plain text with no special formatting, unless specified otherwise (default Mastodon behavior) setting_default_content_type_plain: When writing toots, assume they are plain text with no special formatting, unless specified otherwise (default Mastodon behavior)
setting_default_language: The language of your toots can be detected automatically, but it's not always accurate setting_default_language: The language of your toots can be detected automatically, but it's not always accurate
setting_hide_followers_count: Hide your followers count from everybody, including you. Some applications may display a negative followers count. setting_show_followers_count: Show your followers count on your profile. If you hide your followers count, it will be hidden even from yourself, and some applications may display a negative followers count.
setting_skin: Reskins the selected Mastodon flavour setting_skin: Reskins the selected Mastodon flavour
labels: labels:
defaults: defaults:
@ -17,7 +17,7 @@ en:
setting_default_content_type_markdown: Markdown setting_default_content_type_markdown: Markdown
setting_default_content_type_plain: Plain text setting_default_content_type_plain: Plain text
setting_favourite_modal: Show confirmation dialog before favouriting (applies to Glitch flavour only) setting_favourite_modal: Show confirmation dialog before favouriting (applies to Glitch flavour only)
setting_hide_followers_count: Hide your followers count setting_show_followers_count: Show your followers count
setting_skin: Skin setting_skin: Skin
setting_system_emoji_font: Use system's default font for emojis (applies to Glitch flavour only) setting_system_emoji_font: Use system's default font for emojis (applies to Glitch flavour only)
notification_emails: notification_emails: