From b716926b9c934dd917038d40b3afa19cc2057110 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 9 Apr 2023 20:06:17 -0600 Subject: [PATCH 1/2] Update LandingController, fix configonfig variable names --- app/Http/Controllers/LandingController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/LandingController.php b/app/Http/Controllers/LandingController.php index 9d5d50d53..c125a3c83 100644 --- a/app/Http/Controllers/LandingController.php +++ b/app/Http/Controllers/LandingController.php @@ -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') From 2683fdaf06b4b08653d04857c3d4ab384e331cc6 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 9 Apr 2023 20:06:37 -0600 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f842cdeb7..e441d64a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,8 @@ - Update StatusController, allow users to delete replies to posts ([738925c2](https://github.com/pixelfed/pixelfed/commit/738925c2)) - Update admin autospam/report email templates, remove image previews ([76be49ac](https://github.com/pixelfed/pixelfed/commit/76be49ac)) - Update LandingService, enable landing directory/explore feed by default and move configuration to config/instance.php file ([780f2507](https://github.com/pixelfed/pixelfed/commit/780f2507)) +- Update ImageOptimizePipeline, improve support for disabling image optimizations ([e76289e4](https://github.com/pixelfed/pixelfed/commit/e76289e4)) +- Update LandingController, fix configonfig variable names ([b716926b](https://github.com/pixelfed/pixelfed/commit/b716926b)) - ([](https://github.com/pixelfed/pixelfed/commit/)) ## [v0.11.5 (2023-03-25)](https://github.com/pixelfed/pixelfed/compare/v0.11.4...v0.11.5)