From aa49afc755f0b376a3c493cf4c4ff82a3eb44744 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 15 May 2020 20:41:12 -0600 Subject: [PATCH] Update ApiV1Controller, fix broken auth check on public timelines. Fixes #2168 --- app/Http/Controllers/Api/ApiV1Controller.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/Http/Controllers/Api/ApiV1Controller.php b/app/Http/Controllers/Api/ApiV1Controller.php index 83cc2af0..1a9e4220 100644 --- a/app/Http/Controllers/Api/ApiV1Controller.php +++ b/app/Http/Controllers/Api/ApiV1Controller.php @@ -1397,8 +1397,6 @@ class ApiV1Controller extends Controller */ public function timelinePublic(Request $request) { - abort_if(!config('instance.timeline.local.is_public') && !$request->user(), 403); - $this->validate($request,[ 'page' => 'nullable|integer|max:40', 'min_id' => 'nullable|integer|min:0|max:' . PHP_INT_MAX,