From 448511713de68ff46de81c7c6edd8631f9cd21dd Mon Sep 17 00:00:00 2001 From: Samy Elshamy Date: Sun, 26 Jan 2025 14:18:34 +0100 Subject: [PATCH] Added parameter 'show_legal_notice_link' => (bool) config_cache('instance.has_legal_notice'), --- app/Services/LandingService.php | 1 + app/Util/Site/Config.php | 1 + 2 files changed, 2 insertions(+) diff --git a/app/Services/LandingService.php b/app/Services/LandingService.php index d6180771d..ff76529d2 100644 --- a/app/Services/LandingService.php +++ b/app/Services/LandingService.php @@ -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'), diff --git a/app/Util/Site/Config.php b/app/Util/Site/Config.php index e6406776b..c28a6b342 100644 --- a/app/Util/Site/Config.php +++ b/app/Util/Site/Config.php @@ -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'),