Update ApiV1Controller, fix broken auth check on public timelines. Fixes #2168

This commit is contained in:
Daniel Supernault 2020-05-15 20:41:12 -06:00
parent b7b296c87c
commit aa49afc755
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -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,