From a87f8301b1f8484ec6c854707c4d4ceb56fdd593 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 23 Mar 2022 02:54:15 -0600 Subject: [PATCH] Update ApiV1Controller, fix timeline default limit --- app/Http/Controllers/Api/ApiV1Controller.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Api/ApiV1Controller.php b/app/Http/Controllers/Api/ApiV1Controller.php index 3417c7f90..b5e4d59c0 100644 --- a/app/Http/Controllers/Api/ApiV1Controller.php +++ b/app/Http/Controllers/Api/ApiV1Controller.php @@ -1649,7 +1649,7 @@ class ApiV1Controller extends Controller $page = $request->input('page'); $min = $request->input('min_id'); $max = $request->input('max_id'); - $limit = $request->input('limit') ?? 3; + $limit = $request->input('limit') ?? 20; $pid = $request->user()->profile_id; $following = Cache::remember('profile:following:'.$pid, now()->addMinutes(1440), function() use($pid) { @@ -1809,7 +1809,7 @@ class ApiV1Controller extends Controller $min = $request->input('min_id'); $max = $request->input('max_id'); - $limit = $request->input('limit') ?? 3; + $limit = $request->input('limit') ?? 20; $user = $request->user(); $filtered = $user ? UserFilterService::filters($user->profile_id) : [];