|
|
@ -23,6 +23,7 @@ class UserSettingsDecorator
|
|
|
|
user.settings['delete_modal'] = delete_modal_preference
|
|
|
|
user.settings['delete_modal'] = delete_modal_preference
|
|
|
|
user.settings['auto_play_gif'] = auto_play_gif_preference
|
|
|
|
user.settings['auto_play_gif'] = auto_play_gif_preference
|
|
|
|
user.settings['system_font_ui'] = system_font_ui_preference
|
|
|
|
user.settings['system_font_ui'] = system_font_ui_preference
|
|
|
|
|
|
|
|
user.settings['noindex'] = noindex_preference
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def merged_notification_emails
|
|
|
|
def merged_notification_emails
|
|
|
@ -57,6 +58,10 @@ class UserSettingsDecorator
|
|
|
|
boolean_cast_setting 'setting_auto_play_gif'
|
|
|
|
boolean_cast_setting 'setting_auto_play_gif'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def noindex_preference
|
|
|
|
|
|
|
|
boolean_cast_setting 'setting_noindex'
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def boolean_cast_setting(key)
|
|
|
|
def boolean_cast_setting(key)
|
|
|
|
settings[key] == '1'
|
|
|
|
settings[key] == '1'
|
|
|
|
end
|
|
|
|
end
|
|
|
|