diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-03-25 03:06:19 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-05-21 03:16:21 -0500 |
commit | 6614d42c6e3aedd51b0e9b2a2bb5d6f0a19fcad0 (patch) | |
tree | 35c345b0d67cd385fd606060848ee15a0f00620f /app/lib | |
parent | 90d2280dfec9c2fa3a257b89ea3dfb557168f2d3 (diff) |
hidden accounts + stats hiding
Diffstat (limited to 'app/lib')
-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 50bc04a4e..a851ff217 100644 --- a/app/lib/user_settings_decorator.rb +++ b/app/lib/user_settings_decorator.rb @@ -21,6 +21,7 @@ class UserSettingsDecorator user.settings['default_local'] = default_local_preference if change?('setting_default_local') user.settings['always_local'] = always_local_preference if change?('setting_always_local') user.settings['rawr_federated'] = rawr_federated_preference if change?('setting_rawr_federated') + user.settings['hide_stats'] = hide_stats_preference if change?('setting_hide_stats') user.settings['default_sensitive'] = default_sensitive_preference if change?('setting_default_sensitive') user.settings['default_language'] = default_language_preference if change?('setting_default_language') user.settings['unfollow_modal'] = unfollow_modal_preference if change?('setting_unfollow_modal') @@ -66,6 +67,10 @@ class UserSettingsDecorator boolean_cast_setting 'setting_rawr_federated' end + def hide_stats_preference + boolean_cast_setting 'setting_hide_stats' + end + def default_sensitive_preference boolean_cast_setting 'setting_default_sensitive' end |