mirror of
https://github.com/friendica/friendica
synced 2025-04-25 21:50:12 +00:00
Simplified contact id handling
This commit is contained in:
parent
fd4926b0f3
commit
8e8ec9d2d2
4 changed files with 4 additions and 20 deletions
|
@ -37,9 +37,7 @@ class Lists extends ContactEndpoint
|
|||
$uid = BaseApi::getCurrentUserID();
|
||||
|
||||
// Expected value for user_id parameter: public/user contact id
|
||||
$contact_id = $this->getRequestValue($request, 'user_id', 0);
|
||||
$screen_name = $this->getRequestValue($request, 'screen_name', '');
|
||||
$profile_url = $this->getRequestValue($request, 'profile_url', '');
|
||||
$cid = BaseApi::getContactIDForSearchterm($request['screen_name'] ?? '', $request['profileurl'] ?? '', $request['user_id'] ?? 0, $uid);
|
||||
$cursor = $this->getRequestValue($request, 'cursor', -1);
|
||||
$skip_status = $this->getRequestValue($request, 'skip_status', false);
|
||||
$include_user_entities = $this->getRequestValue($request, 'include_user_entities', false);
|
||||
|
@ -50,8 +48,6 @@ class Lists extends ContactEndpoint
|
|||
$max_id = $this->getRequestValue($request, 'max_id', 0, 0);
|
||||
$min_id = $this->getRequestValue($request, 'min_id', 0, 0);
|
||||
|
||||
$cid = BaseApi::getContactIDForSearchterm($screen_name, $profile_url, $contact_id, $uid);
|
||||
|
||||
$params = ['order' => ['relation-cid' => true], 'limit' => $count];
|
||||
|
||||
$condition = ['cid' => $cid, 'follows' => true];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue