mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Update ApiV1Controller, fix broken auth check on public timelines. Fixes #2168
This commit is contained in:
parent
b7b296c87c
commit
aa49afc755
1 changed files with 0 additions and 2 deletions
|
@ -1397,8 +1397,6 @@ class ApiV1Controller extends Controller
|
||||||
*/
|
*/
|
||||||
public function timelinePublic(Request $request)
|
public function timelinePublic(Request $request)
|
||||||
{
|
{
|
||||||
abort_if(!config('instance.timeline.local.is_public') && !$request->user(), 403);
|
|
||||||
|
|
||||||
$this->validate($request,[
|
$this->validate($request,[
|
||||||
'page' => 'nullable|integer|max:40',
|
'page' => 'nullable|integer|max:40',
|
||||||
'min_id' => 'nullable|integer|min:0|max:' . PHP_INT_MAX,
|
'min_id' => 'nullable|integer|min:0|max:' . PHP_INT_MAX,
|
||||||
|
|
Loading…
Reference in a new issue