]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/favorited.php
Remove trailing whitespace in UI text.
[quix0rs-gnu-social.git] / actions / favorited.php
index 17c2a58c946145181526d47e2c94f62b47218e0a..ff4a99cd60742bb234dd388a811e44db77787f92 100644 (file)
@@ -172,11 +172,8 @@ class FavoritedAction extends Action
      */
     function showContent()
     {
-        $pop = new Popularity();
-        $pop->offset = ($this->page - 1) * NOTICES_PER_PAGE;
-        $pop->limit  = NOTICES_PER_PAGE;
-        $pop->expiry = 600;
-        $notice = $pop->getNotices();
+        $stream = new PopularNoticeStream(Profile::current());
+        $notice = $stream->getNotices(($this->page-1)*NOTICES_PER_PAGE, NOTICES_PER_PAGE+1);
 
         $nl = new NoticeList($notice, $this);