X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fapitimelinehome.php;h=5dca9a42cd19d9536a5141556c1d007543ffb805;hb=d6b28c64830f632bb2f4b6f3c9369b9e56ad217a;hp=1eb7341ef0fb9d2a47a251598af0e8743e7c7443;hpb=29d0871e5a5b2561387bcad40ef4644ee1c2be08;p=quix0rs-gnu-social.git diff --git a/actions/apitimelinehome.php b/actions/apitimelinehome.php index 1eb7341ef0..5dca9a42cd 100644 --- a/actions/apitimelinehome.php +++ b/actions/apitimelinehome.php @@ -65,7 +65,7 @@ class ApiTimelineHomeAction extends ApiBareAuthAction * * @return boolean success flag */ - protected function prepare($args) + protected function prepare(array $args=array()) { parent::prepare($args); @@ -178,7 +178,7 @@ class ApiTimelineHomeAction extends ApiBareAuthAction { $notices = array(); - $stream = new InboxNoticeStream($this->target->getUser(), $this->scoped); + $stream = new InboxNoticeStream($this->target, $this->scoped); $notice = $stream->getNotices(($this->page-1) * $this->count, $this->count, @@ -199,7 +199,7 @@ class ApiTimelineHomeAction extends ApiBareAuthAction * * @return boolean true */ - function isReadOnly($args) + function isReadOnly(array $args=array()) { return true; }