From e868ac41cd8221c45dfed56a43d155fb2307a7e4 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sat, 11 Jul 2015 19:48:18 +0200 Subject: [PATCH] userrss action didn't call parent preparation method --- actions/userrss.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/actions/userrss.php b/actions/userrss.php index fd49a0e899..7bed1dd256 100644 --- a/actions/userrss.php +++ b/actions/userrss.php @@ -27,18 +27,20 @@ class UserrssAction extends TargetedRss10Action protected function doStreamPreparation() { + parent::doStreamPreparation(); + $this->tag = $this->trimmed('tag'); } protected function getNotices() { if (!empty($this->tag)) { - $stream = $this->target->getTaggedNotices($this->tag, 0, $this->limit); + $stream = $this->getTarget()->getTaggedNotices($this->tag, 0, $this->limit); return $stream->fetchAll(); } // otherwise we fetch a normal user stream - $stream = $this->target->getNotices(0, $this->limit); + $stream = $this->getTarget()->getNotices(0, $this->limit); return $stream->fetchAll(); }