Add option to opt out of search engines on public profile/status pages (#4199)
This commit is contained in:
parent
999170d898
commit
c42092ba7a
11 changed files with 30 additions and 0 deletions
|
@ -23,6 +23,7 @@ class UserSettingsDecorator
|
|||
user.settings['delete_modal'] = delete_modal_preference
|
||||
user.settings['auto_play_gif'] = auto_play_gif_preference
|
||||
user.settings['system_font_ui'] = system_font_ui_preference
|
||||
user.settings['noindex'] = noindex_preference
|
||||
end
|
||||
|
||||
def merged_notification_emails
|
||||
|
@ -57,6 +58,10 @@ class UserSettingsDecorator
|
|||
boolean_cast_setting 'setting_auto_play_gif'
|
||||
end
|
||||
|
||||
def noindex_preference
|
||||
boolean_cast_setting 'setting_noindex'
|
||||
end
|
||||
|
||||
def boolean_cast_setting(key)
|
||||
settings[key] == '1'
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue