diff options
author | Zach Copley <zach@status.net> | 2010-05-05 14:46:36 -0700 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-05-05 14:46:36 -0700 |
commit | b50f300566143837aba3739d62caf679ec19727e (patch) | |
tree | 152f809555ade259ac5488243e2433c223f6ae7e /actions/showfavorites.php | |
parent | c2bda7726c05c6c7f5ef4f9519e56f107bc4e1e5 (diff) |
Implement since_id and max_id param handling for /api/favorites
Diffstat (limited to 'actions/showfavorites.php')
-rw-r--r-- | actions/showfavorites.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/actions/showfavorites.php b/actions/showfavorites.php index 4d776ef04..7f3c77ee2 100644 --- a/actions/showfavorites.php +++ b/actions/showfavorites.php @@ -121,11 +121,11 @@ class ShowfavoritesAction extends OwnerDesignAction // Show imported/gateway notices as well as local if // the user is looking at his own favorites - $this->notice = $this->user->favoriteNotices(($this->page-1)*NOTICES_PER_PAGE, - NOTICES_PER_PAGE + 1, true); + $this->notice = $this->user->favoriteNotices(true, ($this->page-1)*NOTICES_PER_PAGE, + NOTICES_PER_PAGE + 1); } else { - $this->notice = $this->user->favoriteNotices(($this->page-1)*NOTICES_PER_PAGE, - NOTICES_PER_PAGE + 1, false); + $this->notice = $this->user->favoriteNotices(false, ($this->page-1)*NOTICES_PER_PAGE, + NOTICES_PER_PAGE + 1); } if (empty($this->notice)) { |