mirror of
https://github.com/friendica/friendica
synced 2025-04-27 14:30:11 +00:00
API: Parameter cleanup
This commit is contained in:
parent
453e6a9d75
commit
e3d227f3c9
22 changed files with 147 additions and 80 deletions
|
@ -40,10 +40,11 @@ class Suggestions extends BaseApi
|
|||
self::login(self::SCOPE_READ);
|
||||
$uid = self::getCurrentUserID();
|
||||
|
||||
// Maximum number of results to return. Defaults to 40.
|
||||
$limit = (int)!isset($_REQUEST['limit']) ? 40 : $_REQUEST['limit'];
|
||||
$request = self::getRequest([
|
||||
'limit' => 40, // Maximum number of results to return. Defaults to 40.
|
||||
]);
|
||||
|
||||
$suggestions = Contact\Relation::getSuggestions($uid, 0, $limit);
|
||||
$suggestions = Contact\Relation::getSuggestions($uid, 0, $request['limit']);
|
||||
|
||||
$accounts = [];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue