mirror of
https://github.com/friendica/friendica
synced 2025-04-26 07:50:15 +00:00
More functions moved
This commit is contained in:
parent
97719ca207
commit
44555cddb8
9 changed files with 464 additions and 395 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue