From: Evan Prodromou Date: Mon, 30 May 2011 15:22:36 +0000 (-0400) Subject: use ReplyNoticeStream for replies page X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5a9d969f222a4982ee2f5c8089617b49a88916a1;p=quix0rs-gnu-social.git use ReplyNoticeStream for replies page --- diff --git a/actions/replies.php b/actions/replies.php index 7ae2d0eb76..385ca4c6cc 100644 --- a/actions/replies.php +++ b/actions/replies.php @@ -85,8 +85,11 @@ class RepliesAction extends OwnerDesignAction common_set_returnto($this->selfUrl()); - $this->notice = $this->user->getReplies(($this->page-1) * NOTICES_PER_PAGE, - NOTICES_PER_PAGE + 1); + $stream = new ReplyNoticeStream($this->user->id, + Profile::current()); + + $this->notice = $stream->getNotices(($this->page-1) * NOTICES_PER_PAGE, + NOTICES_PER_PAGE + 1); if($this->page > 1 && $this->notice->N == 0){ // TRANS: Server error when page not found (404)