mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-23 21:43:17 +00:00
Update TimelineController
This commit is contained in:
parent
a84ff19451
commit
c8abffb811
1 changed files with 10 additions and 2 deletions
|
@ -20,11 +20,19 @@ class TimelineController extends Controller
|
|||
|
||||
public function local(Request $request)
|
||||
{
|
||||
return view('timeline.local');
|
||||
$this->validate($request, [
|
||||
'layout' => 'nullable|string|in:grid,feed'
|
||||
]);
|
||||
$layout = $request->input('layout', 'feed');
|
||||
return view('timeline.local', compact('layout'));
|
||||
}
|
||||
|
||||
public function network(Request $request)
|
||||
{
|
||||
return view('timeline.network');
|
||||
$this->validate($request, [
|
||||
'layout' => 'nullable|string|in:grid,feed'
|
||||
]);
|
||||
$layout = $request->input('layout', 'feed');
|
||||
return view('timeline.network', compact('layout'));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue