1
0
Fork 0

Update home timeline, redirect to /i/web unless force_old_ui is present

This commit is contained in:
Daniel Supernault 2022-05-15 23:09:45 -06:00
parent 429a6d6527
commit 5ff4730ff1
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 5 additions and 5 deletions

View File

@ -29,11 +29,11 @@ class SiteController extends Controller
public function homeTimeline(Request $request) public function homeTimeline(Request $request)
{ {
$this->validate($request, [ if($request->has('force_old_ui')) {
'layout' => 'nullable|string|in:grid,feed' return view('timeline.home', ['layout' => 'feed']);
]); }
$layout = $request->input('layout', 'feed');
return view('timeline.home', compact('layout')); return redirect('/i/web');
} }
public function changeLocale(Request $request, $locale) public function changeLocale(Request $request, $locale)