mirror of
https://github.com/YunoHost-Apps/pixelfed_ynh.git
synced 2024-09-03 20:06:04 +02:00
Update ApiV1Controller, increase limits from 80 to 100
This commit is contained in:
parent
5a18fd1ef1
commit
15eccd443c
1 changed files with 5 additions and 5 deletions
|
@ -537,7 +537,7 @@ class ApiV1Controller extends Controller
|
||||||
'max_id' => 'nullable|integer|min:0|max:' . PHP_INT_MAX,
|
'max_id' => 'nullable|integer|min:0|max:' . PHP_INT_MAX,
|
||||||
'since_id' => 'nullable|integer|min:0|max:' . PHP_INT_MAX,
|
'since_id' => 'nullable|integer|min:0|max:' . PHP_INT_MAX,
|
||||||
'min_id' => 'nullable|integer|min:0|max:' . PHP_INT_MAX,
|
'min_id' => 'nullable|integer|min:0|max:' . PHP_INT_MAX,
|
||||||
'limit' => 'nullable|integer|min:1|max:80'
|
'limit' => 'nullable|integer|min:1|max:100'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$profile = AccountService::getMastodon($id);
|
$profile = AccountService::getMastodon($id);
|
||||||
|
@ -1582,7 +1582,7 @@ class ApiV1Controller extends Controller
|
||||||
abort_if(!$request->user(), 403);
|
abort_if(!$request->user(), 403);
|
||||||
|
|
||||||
$this->validate($request, [
|
$this->validate($request, [
|
||||||
'limit' => 'nullable|integer|min:1|max:80',
|
'limit' => 'nullable|integer|min:1|max:100',
|
||||||
'min_id' => 'nullable|integer|min:1|max:'.PHP_INT_MAX,
|
'min_id' => 'nullable|integer|min:1|max:'.PHP_INT_MAX,
|
||||||
'max_id' => 'nullable|integer|min:1|max:'.PHP_INT_MAX,
|
'max_id' => 'nullable|integer|min:1|max:'.PHP_INT_MAX,
|
||||||
'since_id' => 'nullable|integer|min:1|max:'.PHP_INT_MAX,
|
'since_id' => 'nullable|integer|min:1|max:'.PHP_INT_MAX,
|
||||||
|
@ -1984,7 +1984,7 @@ class ApiV1Controller extends Controller
|
||||||
|
|
||||||
$this->validate($request, [
|
$this->validate($request, [
|
||||||
'page' => 'nullable|integer|min:1|max:40',
|
'page' => 'nullable|integer|min:1|max:40',
|
||||||
'limit' => 'nullable|integer|min:1|max:80'
|
'limit' => 'nullable|integer|min:1|max:100'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$limit = $request->input('limit') ?? 40;
|
$limit = $request->input('limit') ?? 40;
|
||||||
|
@ -2043,7 +2043,7 @@ class ApiV1Controller extends Controller
|
||||||
|
|
||||||
$this->validate($request, [
|
$this->validate($request, [
|
||||||
'page' => 'nullable|integer|min:1|max:40',
|
'page' => 'nullable|integer|min:1|max:40',
|
||||||
'limit' => 'nullable|integer|min:1|max:80'
|
'limit' => 'nullable|integer|min:1|max:100'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$page = $request->input('page', 1);
|
$page = $request->input('page', 1);
|
||||||
|
@ -2515,7 +2515,7 @@ class ApiV1Controller extends Controller
|
||||||
abort_if(!$request->user(), 403);
|
abort_if(!$request->user(), 403);
|
||||||
|
|
||||||
$this->validate($request, [
|
$this->validate($request, [
|
||||||
'q' => 'required|string|min:1|max:80',
|
'q' => 'required|string|min:1|max:100',
|
||||||
'account_id' => 'nullable|string',
|
'account_id' => 'nullable|string',
|
||||||
'max_id' => 'nullable|string',
|
'max_id' => 'nullable|string',
|
||||||
'min_id' => 'nullable|string',
|
'min_id' => 'nullable|string',
|
||||||
|
|
Loading…
Add table
Reference in a new issue