diff --git a/app/Http/Controllers/PublicApiController.php b/app/Http/Controllers/PublicApiController.php index 8026d7693..517e9d97b 100644 --- a/app/Http/Controllers/PublicApiController.php +++ b/app/Http/Controllers/PublicApiController.php @@ -293,8 +293,8 @@ class PublicApiController extends Controller 'limit' => 'nullable|integer|max:30' ]); - if(config('instance.timeline.local.is_public') == false && !Auth::check()) { - abort(403, 'Authentication required.'); + if(!$request->user()) { + return response('', 403); } $page = $request->input('page');