]> 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)
committerDan Moore <dan@moore.cx>
Fri, 5 Jun 2009 16:53:17 +0000 (12:53 -0400)
actions/twitapiusers.php

index b90bbfa985c9a6a381a5397647b54518225e6768..0461efcb4e9e0ee8f2675fc1ef42705f5412feee 100644 (file)
@@ -35,20 +35,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 (!$user) {