]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
return correct data structure for messages in showmessage
authorEvan Prodromou <evan@controlyourself.ca>
Thu, 18 Sep 2008 02:30:32 +0000 (22:30 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Thu, 18 Sep 2008 02:30:32 +0000 (22:30 -0400)
darcs-hash:20080918023032-5ed1f-e8789b391eb88a181bb6232a5e5f199b0ccb2098.gz

actions/showmessage.php

index 184060aa914508ffab31de9ed9dec9f3d3ee95fe..05814a4a568f6a9b4a36106b34527d7a84048363 100644 (file)
@@ -76,7 +76,10 @@ class ShowmessageAction extends MailboxAction {
        }
        
        function get_messages($user, $page) {
-               return $this->get_message();
+               $message = new Message();
+               $message->id = $this->trimmed('message');
+               $message->fetch();
+               return $message;
        }
        
        function get_message_profile($message) {