mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-23 20:28:06 +01:00
720daa8143
* Add instance-wide setting to disable profile directory Fixes #9496 When the profile directory is disabled: - The “discoverable” setting is hidden from users - The “profile directory” link is not shown on public pages - /explore returns 404 * Move Setting.profile_directory check to a before_action filter
51 lines
1.2 KiB
Ruby
51 lines
1.2 KiB
Ruby
# frozen_string_literal: true
|
|
|
|
class Form::AdminSettings
|
|
include ActiveModel::Model
|
|
|
|
delegate(
|
|
:site_contact_username,
|
|
:site_contact_username=,
|
|
:site_contact_email,
|
|
:site_contact_email=,
|
|
:site_title,
|
|
:site_title=,
|
|
:site_short_description,
|
|
:site_short_description=,
|
|
:site_description,
|
|
:site_description=,
|
|
:site_extended_description,
|
|
:site_extended_description=,
|
|
:site_terms,
|
|
:site_terms=,
|
|
:open_registrations,
|
|
:open_registrations=,
|
|
:closed_registrations_message,
|
|
:closed_registrations_message=,
|
|
:open_deletion,
|
|
:open_deletion=,
|
|
:timeline_preview,
|
|
:timeline_preview=,
|
|
:show_staff_badge,
|
|
:show_staff_badge=,
|
|
:bootstrap_timeline_accounts,
|
|
:bootstrap_timeline_accounts=,
|
|
:theme,
|
|
:theme=,
|
|
:min_invite_role,
|
|
:min_invite_role=,
|
|
:activity_api_enabled,
|
|
:activity_api_enabled=,
|
|
:peers_api_enabled,
|
|
:peers_api_enabled=,
|
|
:show_known_fediverse_at_about_page,
|
|
:show_known_fediverse_at_about_page=,
|
|
:preview_sensitive_media,
|
|
:preview_sensitive_media=,
|
|
:custom_css,
|
|
:custom_css=,
|
|
:profile_directory,
|
|
:profile_directory=,
|
|
to: Setting
|
|
)
|
|
end
|