mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Update LandingController, fix config_cache api check
This commit is contained in:
parent
a0e299c28d
commit
db2da84bec
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ class LandingController extends Controller
|
||||||
|
|
||||||
public function getDirectoryApi(Request $request)
|
public function getDirectoryApi(Request $request)
|
||||||
{
|
{
|
||||||
abort_if(config('instance.landing.show_directory') == false, 404);
|
abort_if(config_cache('instance.landing.show_directory') == false, 404);
|
||||||
|
|
||||||
return DirectoryProfile::collection(
|
return DirectoryProfile::collection(
|
||||||
Profile::whereNull('domain')
|
Profile::whereNull('domain')
|
||||||
|
|
Loading…
Reference in a new issue