Add setting to control the referrer origin (#34731)
This commit is contained in:
parent
8ab2c4a9fc
commit
dbf14784bf
63 changed files with 15 additions and 63 deletions
|
@ -29,6 +29,7 @@ class Form::AdminSettings
|
|||
trendable_by_default
|
||||
show_domain_blocks
|
||||
show_domain_blocks_rationale
|
||||
allow_referrer_origin
|
||||
noindex
|
||||
require_invite_text
|
||||
media_cache_retention_period
|
||||
|
@ -50,6 +51,7 @@ class Form::AdminSettings
|
|||
).freeze
|
||||
|
||||
BOOLEAN_KEYS = %i(
|
||||
allow_referrer_origin
|
||||
timeline_preview
|
||||
activity_api_enabled
|
||||
peers_api_enabled
|
||||
|
|
|
@ -35,6 +35,8 @@
|
|||
as: :boolean,
|
||||
wrapper: :with_label
|
||||
|
||||
%h4= t('admin.settings.discovery.privacy')
|
||||
|
||||
.fields-group
|
||||
= f.input :noindex,
|
||||
as: :boolean,
|
||||
|
@ -42,6 +44,13 @@
|
|||
label: t('admin.settings.default_noindex.title'),
|
||||
wrapper: :with_label
|
||||
|
||||
.fields-group
|
||||
= f.input :allow_referrer_origin,
|
||||
as: :boolean,
|
||||
hint: t('admin.settings.allow_referrer_origin.desc'),
|
||||
label: t('admin.settings.allow_referrer_origin.title'),
|
||||
wrapper: :with_label
|
||||
|
||||
%h4= t('admin.settings.discovery.publish_statistics')
|
||||
|
||||
.fields-group
|
||||
|
@ -50,8 +59,6 @@
|
|||
wrapper: :with_label,
|
||||
recommended: :recommended
|
||||
|
||||
%h4= t('admin.settings.discovery.publish_discovered_servers')
|
||||
|
||||
.fields-group
|
||||
= f.input :peers_api_enabled,
|
||||
as: :boolean,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue