diff options
author | multiple creatures <dev@multiple-creature.party> | 2020-01-12 23:56:43 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-01-12 23:56:43 -0600 |
commit | 51bab85b07b1433e832152f6498f203ec4b4434d (patch) | |
tree | 3c3e3a5cf92e03956195ef7a4e11f25e10f7b3ad /app/lib | |
parent | 651c569c3fe7bd3ab12578396ec5934285f02188 (diff) |
add privacy option to limit lifespan of public access to post & object urls beyond local followers, default to 90 days
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 6445e8a91..5f800adc6 100644 --- a/app/lib/user_settings_decorator.rb +++ b/app/lib/user_settings_decorator.rb @@ -40,6 +40,7 @@ class UserSettingsDecorator user.settings['hide_public_outbox'] = hide_public_outbox_preference if change?('setting_hide_public_outbox') user.settings['larger_emoji'] = larger_emoji_preference if change?('setting_larger_emoji') user.settings['max_public_history'] = max_public_history_preference if change?('setting_max_public_history') + user.settings['max_public_access'] = max_public_access_preference if change?('setting_max_public_access') user.settings['roar_lifespan'] = roar_lifespan_preference if change?('setting_roar_lifespan') user.settings['delayed_roars'] = delayed_roars_preference if change?('setting_delayed_roars') user.settings['delayed_for'] = delayed_for_preference if change?('setting_delayed_for') @@ -151,6 +152,10 @@ class UserSettingsDecorator settings['setting_max_public_history'] end + def max_public_access_preference + settings['setting_max_public_access'] + end + def roar_lifespan_preference settings['setting_roar_lifespan'] end |