diff options
author | multiple creatures <dev@multiple-creature.party> | 2020-02-04 20:12:06 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-02-04 20:12:06 -0600 |
commit | f867348ed6fc180d538f9dd4ef6f6df66b31ab93 (patch) | |
tree | b8ea27a2ae2732366fe5865f933228073d75e6bc /app/lib | |
parent | 6ddf5e72205dba7e31cd4f759bcda369f04c3b86 (diff) |
fix rss endpoint & add option to enable it (off by default)
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 56a35a8af..560700899 100644 --- a/app/lib/user_settings_decorator.rb +++ b/app/lib/user_settings_decorator.rb @@ -52,6 +52,7 @@ class UserSettingsDecorator user.settings['boost_interval_from'] = boost_interval_from_preference if change?('setting_boost_interval_from') user.settings['boost_interval_to'] = boost_interval_to_preference if change?('setting_boost_interval_to') user.settings['show_cursor'] = show_cursor_preference if change?('setting_show_cursor') + user.settings['allow_rss'] = allow_rss_preference if change?('setting_allow_rss') user.settings['notification_emails'] = merged_notification_emails if change?('notification_emails') user.settings['interactions'] = merged_interactions if change?('interactions') @@ -207,6 +208,10 @@ class UserSettingsDecorator settings['setting_delayed_for'] end + def allow_rss_preference + boolean_cast_setting['setting_allow_rss'] + end + def merged_notification_emails user.settings['notification_emails'].merge coerced_settings('notification_emails').to_h end |