Min is max
This commit is contained in:
parent
0a6127ea6e
commit
8ae29eabe8
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ class Search extends BaseApi
|
||||||
// Attempt WebFinger lookup. Defaults to false.
|
// Attempt WebFinger lookup. Defaults to false.
|
||||||
$resolve = $request['resolve'];
|
$resolve = $request['resolve'];
|
||||||
// Maximum number of results to load, per type. Defaults to 20. Max 40.
|
// Maximum number of results to load, per type. Defaults to 20. Max 40.
|
||||||
$limit = max($request['limit'], 40);
|
$limit = min($request['limit'], 40);
|
||||||
// Offset in search results. Used for pagination. Defaults to 0.
|
// Offset in search results. Used for pagination. Defaults to 0.
|
||||||
$offset = $request['offset'];
|
$offset = $request['offset'];
|
||||||
// Only who the user is following. Defaults to false.
|
// Only who the user is following. Defaults to false.
|
||||||
|
|
Loading…
Reference in a new issue