Update ApiV1Controller, increase max limit on timelines

This commit is contained in:
Daniel Supernault 2022-03-24 22:12:07 -06:00
parent 1c02afb1a1
commit df22f2e4b0
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -1656,7 +1656,7 @@ class ApiV1Controller extends Controller
'page' => 'nullable|integer|max:40',
'min_id' => 'nullable|integer|min:0|max:' . PHP_INT_MAX,
'max_id' => 'nullable|integer|min:0|max:' . PHP_INT_MAX,
'limit' => 'nullable|integer|max:80'
'limit' => 'nullable|integer|max:100'
]);
$page = $request->input('page');
@ -1817,7 +1817,7 @@ class ApiV1Controller extends Controller
$this->validate($request,[
'min_id' => 'nullable|integer|min:0|max:' . PHP_INT_MAX,
'max_id' => 'nullable|integer|min:0|max:' . PHP_INT_MAX,
'limit' => 'nullable|integer|max:80'
'limit' => 'nullable|integer|max:100'
]);
$min = $request->input('min_id');