Browse Source

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

Daniel Supernault 5 years ago
parent
commit
aa49afc755
1 changed files with 0 additions and 2 deletions
  1. 0 2
      app/Http/Controllers/Api/ApiV1Controller.php

+ 0 - 2
app/Http/Controllers/Api/ApiV1Controller.php

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