Add a second parameter to BaseApi::getRequest to enable API tests
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user