More functions moved

This commit is contained in:
Michael 2021-11-25 06:00:58 +00:00
parent 97719ca207
commit 44555cddb8
9 changed files with 464 additions and 395 deletions

View file

@ -36,7 +36,12 @@ class Show extends BaseApi
{
BaseApi::checkAllowedScope(BaseApi::SCOPE_READ);
$uid = BaseApi::getCurrentUserID();
$cid = BaseApi::getContactIDForSearchterm($_REQUEST['screen_name'] ?? '', $_REQUEST['user_id'] ?? 0, $uid);
if (empty($this->parameters['id'])) {
$cid = BaseApi::getContactIDForSearchterm($_REQUEST['screen_name'] ?? '', $_REQUEST['user_id'] ?? 0, $uid);
} else {
$cid = (int)$this->parameters['id'];
}
$user_info = DI::twitterUser()->createFromContactId($cid, $uid)->toArray();