]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
change handle() to use message-getting helper
authorEvan Prodromou <evan@controlyourself.ca>
Wed, 24 Sep 2008 20:22:11 +0000 (16:22 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Wed, 24 Sep 2008 20:22:11 +0000 (16:22 -0400)
darcs-hash:20080924202211-5ed1f-a39e520b113a843bee6dd9e2e56c1a7afb2bb896.gz

actions/showmessage.php

index 28e35945065e43e6fd0728166cf7d8990ef6af12..c171ffe0b596b790bd5b458dbcae1a0393ed9026 100644 (file)
@@ -27,9 +27,7 @@ class ShowmessageAction extends MailboxAction {
 
                Action::handle($args);
 
-               $id = $this->trimmed('message');
-
-               $message = Message::staticGet('message', $id);
+               $message = $this->get_message();
 
                if (!$message) {
                        $this->client_error(_('No such message.'), 404);