fix bug with sender_id and recipient_id in direct_messages

This commit is contained in:
Evan Prodromou 2012-04-13 11:28:18 -04:00
parent b2639b723f
commit 35521d4a5b
1 changed files with 2 additions and 2 deletions

View File

@ -958,9 +958,9 @@ class ApiAction extends Action
$to_profile = $message->getTo();
$dmsg['id'] = intval($message->id);
$dmsg['sender_id'] = intval($from_profile);
$dmsg['sender_id'] = intval($from_profile->id);
$dmsg['text'] = trim($message->content);
$dmsg['recipient_id'] = intval($to_profile);
$dmsg['recipient_id'] = intval($to_profile->id);
$dmsg['created_at'] = $this->dateTwitter($message->created);
$dmsg['sender_screen_name'] = $from_profile->nickname;
$dmsg['recipient_screen_name'] = $to_profile->nickname;