X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Ffavorited.php;h=ff4a99cd60742bb234dd388a811e44db77787f92;hb=418b3c3c53194040022c4b56bd0c0b04fd6fd4d7;hp=17c2a58c946145181526d47e2c94f62b47218e0a;hpb=0dbdcf2936a00282114f1368ead2f5edebc6ae61;p=quix0rs-gnu-social.git diff --git a/actions/favorited.php b/actions/favorited.php index 17c2a58c94..ff4a99cd60 100644 --- a/actions/favorited.php +++ b/actions/favorited.php @@ -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);