diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-11-05 11:55:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-05 11:55:25 +0100 |
commit | 2f8fb49d1314db931385089bc9004a48700161ad (patch) | |
tree | 88e01ffeb373c989dfff0e6f81c9e5d18e4a8fb1 /app | |
parent | 34ba7612d11958217e373f03c5dccf618c9f4284 (diff) |
Fix users not being able to change their hide_followers_count setting (#1889)
Diffstat (limited to 'app')
-rw-r--r-- | app/lib/user_settings_decorator.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/lib/user_settings_decorator.rb b/app/lib/user_settings_decorator.rb index 1d70ed36a..260077a1c 100644 --- a/app/lib/user_settings_decorator.rb +++ b/app/lib/user_settings_decorator.rb @@ -32,6 +32,7 @@ class UserSettingsDecorator user.settings['system_font_ui'] = system_font_ui_preference if change?('setting_system_font_ui') user.settings['system_emoji_font'] = system_emoji_font_preference if change?('setting_system_emoji_font') user.settings['noindex'] = noindex_preference if change?('setting_noindex') + user.settings['hide_followers_count'] = hide_followers_count_preference if change?('setting_hide_followers_count') user.settings['flavour'] = flavour_preference if change?('setting_flavour') user.settings['skin'] = skin_preference if change?('setting_skin') user.settings['aggregate_reblogs'] = aggregate_reblogs_preference if change?('setting_aggregate_reblogs') @@ -117,6 +118,10 @@ class UserSettingsDecorator settings['setting_skin'] end + def hide_followers_count_preference + boolean_cast_setting 'setting_hide_followers_count' + end + def show_application_preference boolean_cast_setting 'setting_show_application' end |