Update ApiV1Controller, fix timeline default limit

This commit is contained in:
Daniel Supernault 2022-03-23 02:54:15 -06:00
parent b1ab41e0c4
commit a87f8301b1
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -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) : [];