X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Ftwitapiusers.php;fp=actions%2Ftwitapiusers.php;h=fea41b3971d3f9a77b342e6304f6e83e96fa6784;hb=bafa1ab1c532118e2230df50ed18a1b4573692b7;hp=a47fdfbc38d0f8b2e0c1c0a6a520e3b76433cd6b;hpb=91684830e55dd0e6a9e069ff140e17a929dd2364;p=quix0rs-gnu-social.git diff --git a/actions/twitapiusers.php b/actions/twitapiusers.php index a47fdfbc38..fea41b3971 100644 --- a/actions/twitapiusers.php +++ b/actions/twitapiusers.php @@ -1,7 +1,7 @@ . */ -if (!defined('LACONICA')) { exit(1); } +if (!defined('LACONICA')) { + exit(1); +} require_once(INSTALLDIR.'/lib/twitterapi.php'); @@ -41,10 +43,10 @@ class TwitapiusersAction extends TwitterapiAction if ($email) { $user = User::staticGet('email', $email); } else { - $user = $this->get_user($apidata['api_arg']); + $user = $this->get_user($apidata['api_arg'], $apidata); } - if (!$user) { + if (empty($user)) { $this->clientError(_('Not found.'), 404, $apidata['content-type']); return; } @@ -56,7 +58,7 @@ class TwitapiusersAction extends TwitterapiAction return; } - $twitter_user = $this->twitter_user_array($profile, true); + $twitter_user = $this->twitter_user_array($user->getProfile(), true); if ($apidata['content-type'] == 'xml') { $this->init_document('xml');