]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Bringing users/show in line with Twitter as far as specifying user.
authorDan Moore <dan@moore.cx>
Fri, 5 Jun 2009 16:53:17 +0000 (12:53 -0400)
committerZach Copley <zach@controlyourself.ca>
Mon, 6 Jul 2009 22:51:17 +0000 (15:51 -0700)
actions/twitapiusers.php

index 4057b63e740527d82f5624b78eea2e3d56491d0e..ee01c2a4333011697c24077459077762336990c3 100644 (file)
@@ -37,20 +37,13 @@ class TwitapiusersAction extends TwitterapiAction
 
         $user = null;
         $email = $this->arg('email');
-        $user_id = $this->arg('user_id');
 
         // XXX: email field deprecated in Twitter's API
 
-        // XXX: Also: need to add screen_name param
-
         if ($email) {
             $user = User::staticGet('email', $email);
-        } elseif ($user_id) {
-            $user = $this->get_user($user_id);
-        } elseif (isset($apidata['api_arg'])) {
+        } else {
             $user = $this->get_user($apidata['api_arg']);
-        } elseif (isset($apidata['user'])) {
-            $user = $apidata['user'];
         }
 
         if (empty($user)) {