From 5ff4730ff15a85f3846843720c78af024b09501e Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 15 May 2022 23:09:45 -0600 Subject: [PATCH] Update home timeline, redirect to /i/web unless force_old_ui is present --- app/Http/Controllers/SiteController.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Http/Controllers/SiteController.php b/app/Http/Controllers/SiteController.php index 5b4e42abb..7202f7c6e 100644 --- a/app/Http/Controllers/SiteController.php +++ b/app/Http/Controllers/SiteController.php @@ -29,11 +29,11 @@ class SiteController extends Controller public function homeTimeline(Request $request) { - $this->validate($request, [ - 'layout' => 'nullable|string|in:grid,feed' - ]); - $layout = $request->input('layout', 'feed'); - return view('timeline.home', compact('layout')); + if($request->has('force_old_ui')) { + return view('timeline.home', ['layout' => 'feed']); + } + + return redirect('/i/web'); } public function changeLocale(Request $request, $locale)