Twitter-compatible API: /friendship/exists always failed - fixed!
darcs-hash:20080720083948-ca946-14b4ef6a5fe387f1e147546be156fafb7d665275.gz
This commit is contained in:
parent
93ac0bcae3
commit
05fe4f6a2f
|
@ -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']);
|
||||
|
|
Loading…
Reference in New Issue
Block a user