We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 8f7f06e3 authored by Evan Prodromou's avatar Evan Prodromou

fix bug with sender_id and recipient_id in direct_messages

parent 562ac50e
...@@ -958,9 +958,9 @@ class ApiAction extends Action ...@@ -958,9 +958,9 @@ class ApiAction extends Action
$to_profile = $message->getTo(); $to_profile = $message->getTo();
$dmsg['id'] = intval($message->id); $dmsg['id'] = intval($message->id);
$dmsg['sender_id'] = intval($from_profile); $dmsg['sender_id'] = intval($from_profile->id);
$dmsg['text'] = trim($message->content); $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['created_at'] = $this->dateTwitter($message->created);
$dmsg['sender_screen_name'] = $from_profile->nickname; $dmsg['sender_screen_name'] = $from_profile->nickname;
$dmsg['recipient_screen_name'] = $to_profile->nickname; $dmsg['recipient_screen_name'] = $to_profile->nickname;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment