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

index ecd2a1a0e69594511bdc6c10eb6db57ec9344df2..6afb11f860586a3c0c8e94cf79ac2200ae4587b2 100644 (file)
@@ -193,10 +193,13 @@ class ApiTimelineMentionsAction extends ApiBareAuthAction
     {
         $notices = array();
 
-        $notice = $this->user->getReplies(
-            ($this->page - 1) * $this->count, $this->count,
-            $this->since_id, $this->max_id
-        );
+        $stream = new ReplyNoticeStream($this->user->id,
+                                        Profile::current());
+
+        $notice = $stream->getNotices(($this->page - 1) * $this->count,
+                                      $this->count,
+                                      $this->since_id,
+                                      $this->max_id);
 
         while ($notice->fetch()) {
             $notices[] = clone($notice);