diff options
author | Craig Andrews <candrews@integralblue.com> | 2009-10-29 19:09:42 -0400 |
---|---|---|
committer | Craig Andrews <candrews@integralblue.com> | 2009-10-29 19:09:42 -0400 |
commit | 35ace5562d999532d799f4d5153b7b3c347042a0 (patch) | |
tree | ad4b6b1066a1a06fd945e923386321195a091c25 /actions/showfavorites.php | |
parent | de7c12baef33d29c92f28168d0446e7c920df017 (diff) |
Fix feed links which were broken when the API was restructured
Diffstat (limited to 'actions/showfavorites.php')
-rw-r--r-- | actions/showfavorites.php | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/actions/showfavorites.php b/actions/showfavorites.php index b96d2af37..b12fcdd9a 100644 --- a/actions/showfavorites.php +++ b/actions/showfavorites.php @@ -164,13 +164,25 @@ class ShowfavoritesAction extends OwnerDesignAction function getFeeds() { - $feedurl = common_local_url('favoritesrss', - array('nickname' => - $this->user->nickname)); - $feedtitle = sprintf(_('Feed for favorites of %s'), - $this->user->nickname); - - return array(new Feed(Feed::RSS1, $feedurl, $feedtitle)); + return array(new Feed(Feed::RSS1, + common_local_url('favoritesrss', + array('nickname' => $this->user->nickname)), + sprintf(_('Feed for favorites of %s (RSS 1.0)'), + $this->user->nickname)), + new Feed(Feed::RSS2, + common_local_url('ApiTimelineFavorites', + array( + 'id' => $this->user->nickname, + 'format' => 'rss')), + sprintf(_('Feed for favorites of %s (RSS 2.0)'), + $this->user->nickname)), + new Feed(Feed::ATOM, + common_local_url('ApiTimelineFavorites', + array( + 'id' => $this->user->nickname, + 'format' => 'atom')), + sprintf(_('Feed for favorites of %s (Atom)'), + $this->user->nickname))); } /** |