Skip to content

Commit

Permalink
Update LandingController, fix configonfig variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
dansup committed Apr 10, 2023
1 parent 25f8b9a commit b716926
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/LandingController.php
Expand Up @@ -26,14 +26,14 @@ public function exploreRedirect(Request $request)
return redirect('/');
}

abort_if(config_cache('landing.show_explore_feed') != 1, 404);
abort_if(config('instance.landing.show_explore') == false, 404);

return view('site.index');
}

public function getDirectoryApi(Request $request)
{
abort_if(config_cache('landing.show_directory') != 1, 404);
abort_if(config('instance.landing.show_directory') == false, 404);

return DirectoryProfile::collection(
Profile::whereNull('domain')
Expand Down

0 comments on commit b716926

Please sign in to comment.