mirror of
https://github.com/friendica/friendica
synced 2025-04-23 14:30:11 +00:00
API: Fix profile_url handling / missing constant
This commit is contained in:
parent
dbcaf51923
commit
fb47389c69
12 changed files with 83 additions and 110 deletions
|
@ -39,6 +39,7 @@ class Lists extends ContactEndpoint
|
|||
// Expected value for user_id parameter: public/user contact id
|
||||
$contact_id = filter_input(INPUT_GET, 'user_id' , FILTER_VALIDATE_INT);
|
||||
$screen_name = filter_input(INPUT_GET, 'screen_name');
|
||||
$profile_url = filter_input(INPUT_GET, 'profile_url');
|
||||
$cursor = filter_input(INPUT_GET, 'cursor' , FILTER_VALIDATE_INT, ['options' => ['default' => -1]]);
|
||||
$skip_status = filter_input(INPUT_GET, 'skip_status' , FILTER_VALIDATE_BOOLEAN, ['options' => ['default' => false]]);
|
||||
$include_user_entities = filter_input(INPUT_GET, 'include_user_entities', FILTER_VALIDATE_BOOLEAN, ['options' => ['default' => false]]);
|
||||
|
@ -52,7 +53,7 @@ class Lists extends ContactEndpoint
|
|||
$max_id = filter_input(INPUT_GET, 'max_id' , FILTER_VALIDATE_INT);
|
||||
$min_id = filter_input(INPUT_GET, 'min_id' , FILTER_VALIDATE_INT);
|
||||
|
||||
$cid = BaseApi::getContactIDForSearchterm($screen_name, $contact_id, $uid);
|
||||
$cid = BaseApi::getContactIDForSearchterm($screen_name, $profile_url, $contact_id, $uid);
|
||||
|
||||
$params = ['order' => ['cid' => true], 'limit' => $count];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue