Explorar el Código

Update LandingService, add curated onboarding parameter

Daniel Supernault hace 1 año
padre
commit
06655c3a8b
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      app/Services/LandingService.php

+ 2 - 1
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'),