mirror of
https://github.com/friendica/friendica
synced 2025-04-26 07:50:15 +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
|
@ -23,6 +23,7 @@ namespace Friendica\Module\Api\Twitter\Users;
|
|||
|
||||
use Friendica\Module\BaseApi;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model\Contact;
|
||||
|
||||
/**
|
||||
* Returns extended information of a given user, specified by ID or screen name as per the required id parameter.
|
||||
|
@ -38,7 +39,7 @@ class Show extends BaseApi
|
|||
$uid = BaseApi::getCurrentUserID();
|
||||
|
||||
if (empty($this->parameters['id'])) {
|
||||
$cid = BaseApi::getContactIDForSearchterm($_REQUEST['screen_name'] ?? '', $_REQUEST['user_id'] ?? 0, $uid);
|
||||
$cid = BaseApi::getContactIDForSearchterm($_REQUEST['screen_name'] ?? '', $_REQUEST['profileurl'] ?? '', $_REQUEST['user_id'] ?? 0, $uid);
|
||||
} else {
|
||||
$cid = (int)$this->parameters['id'];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue