$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);
$stringify_ids = $this->getRequestValue($request, 'stringify_ids', false);
$count = $this->getRequestValue($request, 'count', self::DEFAULT_COUNT, 1, self::MAX_COUNT);
$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];
$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);
$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];
$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);
$stringify_ids = $this->getRequestValue($request, 'stringify_ids', false);
$count = $this->getRequestValue($request, 'count', self::DEFAULT_COUNT, 1, self::MAX_COUNT);
$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' => ['cid' => true], 'limit' => $count];
$condition = ['relation-cid' => $cid, 'follows' => true];
$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);
$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' => ['cid' => true], 'limit' => $count];
$condition = ['relation-cid' => $cid, 'follows' => true];