]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/replies.php
Added type-hint (checked!)
[quix0rs-gnu-social.git] / actions / replies.php
index 3c7e950d012e1a8d9c518f3b2e4ee28d790ace93..efe0d62beb9b59337b9f9df0f8978b24e9ce6434 100644 (file)
@@ -40,10 +40,7 @@ if (!defined('GNUSOCIAL')) { exit(1); }
  */
 class RepliesAction extends ShowstreamAction
 {
-    var $page = null;
-    var $notice;
-
-    protected function getStream()
+    public function getStream()
     {
         return new ReplyNoticeStream($this->target->getID(), $this->scoped);
     }
@@ -85,7 +82,7 @@ class RepliesAction extends ShowstreamAction
                               // TRANS: Link for feed with replies for a user.
                               // TRANS: %s is a user nickname.
                               sprintf(_('Replies feed for %s (Activity Streams JSON)'),
-                                      $this->user->nickname)),
+                                      $this->target->getNickname())),
                      new Feed(Feed::RSS1,
                               common_local_url('repliesrss',
                                                array('nickname' => $this->target->getNickname())),
@@ -155,7 +152,7 @@ class RepliesAction extends ShowstreamAction
         $this->elementEnd('div');
     }
 
-    public function isReadOnly($args)
+    public function isReadOnly(array $args = array())
     {
         return true;
     }