From 06655c3a8ba852a85b1cd66817056c7de73aca89 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 19 Feb 2024 04:34:57 -0700 Subject: [PATCH] Update LandingService, add curated onboarding parameter --- app/Services/LandingService.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Services/LandingService.php b/app/Services/LandingService.php index 6b1aa62d4..199768b86 100644 --- a/app/Services/LandingService.php +++ b/app/Services/LandingService.php @@ -48,7 +48,7 @@ class LandingService ->toArray() : []; }); - $openReg = (bool) config_cache('pixelfed.open_registration') || (bool) config_cache('instance.curated_registration.enabled') && config('instance.curated_registration.state.fallback_on_closed_reg'); + $openReg = (bool) config_cache('pixelfed.open_registration'); $res = [ 'name' => config_cache('app.name'), @@ -57,6 +57,7 @@ class LandingService 'show_directory' => config_cache('instance.landing.show_directory'), 'show_explore_feed' => config_cache('instance.landing.show_explore'), 'open_registration' => (bool) $openReg, + 'curated_onboarding' => (bool) config_cache('instance.curated_registration.enabled'), 'version' => config('pixelfed.version'), 'about' => [ 'banner_image' => config_cache('app.banner_image') ?? url('/storage/headers/default.jpg'),