]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Twitter-compatible API: /friendship/exists always failed - fixed!
authorzach <zach@copley.name>
Sun, 20 Jul 2008 08:39:48 +0000 (04:39 -0400)
committerzach <zach@copley.name>
Sun, 20 Jul 2008 08:39:48 +0000 (04:39 -0400)
darcs-hash:20080720083948-ca946-14b4ef6a5fe387f1e147546be156fafb7d665275.gz

actions/twitapifriendships.php

index 19617a071bf07f96a5ec420dc53bc6324d96ee81..19bc71b7af0a8e3c20f9aa9a2c14c1894c144f0e 100644 (file)
@@ -129,8 +129,8 @@ class TwitapifriendshipsAction extends TwitterapiAction {
                $user_a_id = $this->trimmed('user_a');
                $user_b_id = $this->trimmed('user_b');
                
-               $user_a = $this->get_profile($user_a_id);
-               $user_b = $this->get_profile($user_b_id);
+               $user_a = $this->get_user($user_a_id);
+               $user_b = $this->get_user($user_b_id);
                
                if (!$user_a || !$user_b) {
                        $this->client_error(_('Two user ids or screen_names must be supplied.'), 400, $apidata['content-type']);