mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 00:03:16 +00:00
Update home timeline, redirect to /i/web unless force_old_ui is present
This commit is contained in:
parent
429a6d6527
commit
5ff4730ff1
1 changed files with 5 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue