From: Evan Prodromou Date: Fri, 13 Apr 2012 15:28:18 +0000 (-0400) Subject: fix bug with sender_id and recipient_id in direct_messages X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=35521d4a5b9aacbc377de8f9bc73156beed66d49;p=quix0rs-gnu-social.git fix bug with sender_id and recipient_id in direct_messages --- 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;