Add preference to hide following/followers lists (#7532)
* Add preference to hide following/followers lists - Public pages - ActivityPub collections (does not return pages but does give total) - REST API (unless it's your own) (does not federate) Fix #6901 * Add preference * Add delegation * Fix issue * Fix issue
This commit is contained in:
parent
919eef3098
commit
1e02dc8715
19 changed files with 58 additions and 9 deletions
|
@ -28,6 +28,7 @@ class UserSettingsDecorator
|
|||
user.settings['system_font_ui'] = system_font_ui_preference if change?('setting_system_font_ui')
|
||||
user.settings['noindex'] = noindex_preference if change?('setting_noindex')
|
||||
user.settings['theme'] = theme_preference if change?('setting_theme')
|
||||
user.settings['hide_network'] = hide_network_preference if change?('setting_hide_network')
|
||||
end
|
||||
|
||||
def merged_notification_emails
|
||||
|
@ -78,6 +79,10 @@ class UserSettingsDecorator
|
|||
boolean_cast_setting 'setting_noindex'
|
||||
end
|
||||
|
||||
def hide_network_preference
|
||||
boolean_cast_setting 'setting_hide_network'
|
||||
end
|
||||
|
||||
def theme_preference
|
||||
settings['setting_theme']
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue