mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-23 08:14:10 +00:00
Update LandingController, fix configonfig variable names
This commit is contained in:
parent
25f8b9ae62
commit
b716926b9c
1 changed files with 2 additions and 2 deletions
|
@ -26,14 +26,14 @@ class LandingController extends Controller
|
|||
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')
|
||||
|
|
Loading…
Reference in a new issue