From 8f7f06e35a1763c3f6715a06999704ecbe4b36b1 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 13 Apr 2012 11:28:18 -0400 Subject: [PATCH] fix bug with sender_id and recipient_id in direct_messages --- lib/apiaction.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/apiaction.php b/lib/apiaction.php index 420dd2a7cf..14e21ae4fd 100644 --- a/lib/apiaction.php +++ b/lib/apiaction.php @@ -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; -- 2.39.5