forked from mirror/pixelfed
Update home timeline, redirect to /i/web unless force_old_ui is present
This commit is contained in:
parent
429a6d6527
commit
5ff4730ff1
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue