Added parameter 'show_legal_notice_link' => (bool) config_cache('instance.has_legal_notice'),

pull/5606/head
Samy Elshamy 7 months ago
parent 705d2a075d
commit 448511713d

@ -52,6 +52,7 @@ class LandingService
'domain' => config('pixelfed.domain.app'),
'show_directory' => (bool) config_cache('instance.landing.show_directory'),
'show_explore_feed' => (bool) config_cache('instance.landing.show_explore'),
'show_legal_notice_link' => (bool) config_cache('instance.has_legal_notice'),
'open_registration' => (bool) $openReg,
'curated_onboarding' => (bool) config_cache('instance.curated_registration.enabled'),
'version' => config('pixelfed.version'),

@ -29,6 +29,7 @@ class Config
return [
'version' => config('pixelfed.version'),
'open_registration' => (bool) config_cache('pixelfed.open_registration'),
'show_legal_notice_link' => (bool) config_cache('instance.has_legal_notice'),
'uploader' => [
'max_photo_size' => (int) config_cache('pixelfed.max_photo_size'),
'max_caption_length' => (int) config_cache('pixelfed.max_caption_length'),

Loading…
Cancel
Save