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

View file

@ -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)