From 5a9d969f222a4982ee2f5c8089617b49a88916a1 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 30 May 2011 11:22:36 -0400 Subject: [PATCH] use ReplyNoticeStream for replies page --- actions/replies.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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) -- 2.39.5