]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
use ReplyNoticeStream for replies page
authorEvan Prodromou <evan@status.net>
Mon, 30 May 2011 15:22:36 +0000 (11:22 -0400)
committerEvan Prodromou <evan@status.net>
Mon, 30 May 2011 15:22:36 +0000 (11:22 -0400)
actions/replies.php

index 7ae2d0eb766c18d8aa1a130062539c1640c87917..385ca4c6cc11157db80f98008db01fc04b65c755 100644 (file)
@@ -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)