userrss action didn't call parent preparation method

This commit is contained in:
Mikael Nordfeldth 2015-07-11 19:48:18 +02:00
parent c5a5eaf288
commit e868ac41cd

View File

@ -27,18 +27,20 @@ class UserrssAction extends TargetedRss10Action
protected function doStreamPreparation() protected function doStreamPreparation()
{ {
parent::doStreamPreparation();
$this->tag = $this->trimmed('tag'); $this->tag = $this->trimmed('tag');
} }
protected function getNotices() protected function getNotices()
{ {
if (!empty($this->tag)) { 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(); return $stream->fetchAll();
} }
// otherwise we fetch a normal user stream // otherwise we fetch a normal user stream
$stream = $this->target->getNotices(0, $this->limit); $stream = $this->getTarget()->getNotices(0, $this->limit);
return $stream->fetchAll(); return $stream->fetchAll();
} }