Twitter-compatible API: /friendship/exists always failed - fixed!

darcs-hash:20080720083948-ca946-14b4ef6a5fe387f1e147546be156fafb7d665275.gz
This commit is contained in:
zach 2008-07-20 04:39:48 -04:00
parent 93ac0bcae3
commit 05fe4f6a2f
1 changed files with 2 additions and 2 deletions

View 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']);