forked from GNUsocial/gnu-social
userrss action didn't call parent preparation method
This commit is contained in:
parent
c5a5eaf288
commit
e868ac41cd
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user