]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/favorited.php
Removed 'bookmarklet' since we have Bookmark plugin
[quix0rs-gnu-social.git] / actions / favorited.php
index c137cf424f91f0e3f8d81681fb01de8441af36ae..ff4a99cd60742bb234dd388a811e44db77787f92 100644 (file)
@@ -163,19 +163,6 @@ class FavoritedAction extends Action
         $this->elementEnd('div');
     }
 
-    /**
-     * Local navigation
-     *
-     * This page is part of the public group, so show that.
-     *
-     * @return void
-     */
-    function showLocalNav()
-    {
-        $nav = new PublicGroupNav($this);
-        $nav->show();
-    }
-
     /**
      * Content area
      *
@@ -185,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);