mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-11 10:44:27 +02:00
Add a second parameter to BaseApi::getRequest to enable API tests
This commit is contained in:
parent
d83ebe6031
commit
9cc675233d
40 changed files with 45 additions and 41 deletions
|
@ -56,7 +56,7 @@ class Search extends BaseApi
|
|||
'limit' => 20, // Maximum number of results to load, per type. Defaults to 20. Max 40.
|
||||
'offset' => 0, // Offset in search results. Used for pagination. Defaults to 0.
|
||||
'following' => false, // Only include accounts that the user is following. Defaults to false.
|
||||
]);
|
||||
], $request);
|
||||
|
||||
if (empty($request['q'])) {
|
||||
DI::mstdnError()->UnprocessableEntity();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue