diff options
author | Zach Copley <zach@controlyourself.ca> | 2009-06-23 15:53:49 -0700 |
---|---|---|
committer | Zach Copley <zach@controlyourself.ca> | 2009-06-23 15:53:49 -0700 |
commit | 57903bf2acafdc4d15bb9af4fba183b37ec47efe (patch) | |
tree | 06838bb628a2d520cf8201227bb094329147f07b /actions/twitapifavorites.php | |
parent | f04a54ed2f70686d67ed50da21bde61c55b07696 (diff) |
Make gateway notices available to the auth user in the API
Diffstat (limited to 'actions/twitapifavorites.php')
-rw-r--r-- | actions/twitapifavorites.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/actions/twitapifavorites.php b/actions/twitapifavorites.php index e40fea91a..8256668f3 100644 --- a/actions/twitapifavorites.php +++ b/actions/twitapifavorites.php @@ -61,7 +61,11 @@ class TwitapifavoritesAction extends TwitterapiAction $since_id = (int)$this->arg('since_id', 0); $since = $this->arg('since'); - $notice = $user->favoriteNotices(($page-1)*$count, $count); + if (!empty($this->auth_user) && $this->auth_user->id == $user->id) { + $notice = $user->favoriteNotices(($page-1)*$count, $count, true); + } else { + $notice = $user->favoriteNotices(($page-1)*$count, $count, false); + } switch($apidata['content-type']) { case 'xml': |