From bca5a3073f3f6bee2c64f3e199e9e56d0dd7ff7e Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Sun, 21 Jul 2019 20:21:20 -0500 Subject: privacy - add option to disable public activitypub outbox --- app/lib/user_settings_decorator.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/lib') diff --git a/app/lib/user_settings_decorator.rb b/app/lib/user_settings_decorator.rb index bf6a9fe2c..a52bb7f56 100644 --- a/app/lib/user_settings_decorator.rb +++ b/app/lib/user_settings_decorator.rb @@ -33,6 +33,7 @@ class UserSettingsDecorator user.settings['hide_captions'] = hide_captions_preference if change?('setting_hide_captions') user.settings['hide_mascot'] = hide_mascot_preference if change?('setting_hide_mascot') user.settings['hide_interactions'] = hide_interactions_preference if change?('setting_hide_interactions') + 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') @@ -116,6 +117,10 @@ class UserSettingsDecorator boolean_cast_setting 'setting_hide_interactions' end + def hide_public_outbox_preference + boolean_cast_setting 'setting_hide_public_outbox' + end + def max_public_history_preference settings['setting_max_public_history'] end -- cgit