Move norss settings to privacy subpage

This commit is contained in:
nachtjasmin 2023-11-22 22:59:50 +01:00
parent ecb892afbc
commit 35742cdf3d
No known key found for this signature in database
3 changed files with 10 additions and 7 deletions

View File

@ -135,11 +135,16 @@ module HasUserSettings
settings['web.display_media'] == 'hide_all'
end
## --- Hometown-specific settings from here on ---
def setting_expand_usernames
settings['web.auto_play']
settings['web.expand_usernames']
end
def setting_default_federation
settings['default_federation']
end
def setting_norss
settings['norss']
end
end

View File

@ -11,12 +11,6 @@
.fields-group
= ff.input :noindex, wrapper: :with_label, label: I18n.t('simple_form.labels.defaults.setting_noindex'), hint: I18n.t('simple_form.hints.defaults.setting_noindex')
.fields-group
= ff.input :norss, wrapper: :with_label, label: I18n.t('simple_form.labels.defaults.setting_norss'), hint: I18n.t('simple_form.hints.defaults.setting_norss')
.fields-group
= ff.input :noindex, wrapper: :with_label, label: I18n.t('simple_form.labels.defaults.setting_noindex'), hint: I18n.t('simple_form.hints.defaults.setting_noindex')
.fields-group
= ff.input :aggregate_reblogs, wrapper: :with_label, recommended: true, label: I18n.t('simple_form.labels.defaults.setting_aggregate_reblogs'), hint: I18n.t('simple_form.hints.defaults.setting_aggregate_reblogs')

View File

@ -20,6 +20,10 @@
.fields-group
= f.input :unlocked, as: :boolean, wrapper: :with_label
= f.simple_fields_for :settings, current_user.settings do |ff|
.fields-group
= ff.input :norss, wrapper: :with_label, label: I18n.t('simple_form.labels.defaults.setting_norss')
%h4= t('privacy.search')
%p.lead= t('privacy.search_hint_html')