Make displaying application used to toot opt-in (#9897)
* Make storing and displaying application used to toot opt-in * Revert to storing application info, and display it to the author via API
This commit is contained in:
parent
bcfff65195
commit
ed30110618
9 changed files with 24 additions and 3 deletions
|
@ -32,6 +32,7 @@ class UserSettingsDecorator
|
|||
user.settings['theme'] = theme_preference if change?('setting_theme')
|
||||
user.settings['hide_network'] = hide_network_preference if change?('setting_hide_network')
|
||||
user.settings['aggregate_reblogs'] = aggregate_reblogs_preference if change?('setting_aggregate_reblogs')
|
||||
user.settings['show_application'] = show_application_preference if change?('setting_show_application')
|
||||
end
|
||||
|
||||
def merged_notification_emails
|
||||
|
@ -90,6 +91,10 @@ class UserSettingsDecorator
|
|||
boolean_cast_setting 'setting_hide_network'
|
||||
end
|
||||
|
||||
def show_application_preference
|
||||
boolean_cast_setting 'setting_show_application'
|
||||
end
|
||||
|
||||
def theme_preference
|
||||
settings['setting_theme']
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue