summaryrefslogtreecommitdiff
path: root/actions/tag.php
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2009-07-12 15:07:54 -0400
committerCraig Andrews <candrews@integralblue.com>2009-07-12 15:07:54 -0400
commit91324890ae130a6f4280c9f6d82151793611de1f (patch)
treebc847afe0b726f32cfd32c25e864e081eb47e198 /actions/tag.php
parent7621e0e38467349a89f71e814941932fbacecfa1 (diff)
Add timeline tags API (RSS 2.0 and Atom feeds)
Diffstat (limited to 'actions/tag.php')
-rw-r--r--actions/tag.php20
1 files changed, 18 insertions, 2 deletions
diff --git a/actions/tag.php b/actions/tag.php
index 888aba062..020399d9e 100644
--- a/actions/tag.php
+++ b/actions/tag.php
@@ -72,8 +72,24 @@ class TagAction extends Action
function getFeeds()
{
return array(new Feed(Feed::RSS1,
- common_local_url('tagrss', array('tag' => $this->tag)),
- sprintf(_('Feed for tag %s'), $this->tag)));
+ common_local_url('tagrss',
+ array('tag' => $this->tag)),
+ sprintf(_('Notice feed for tag %s (RSS 1.0)'),
+ $this->tag)),
+ new Feed(Feed::RSS2,
+ common_local_url('api',
+ array('apiaction' => 'tags',
+ 'method' => 'timeline',
+ 'argument' => $this->tag.'.rss')),
+ sprintf(_('Notice feed for %s group (RSS 2.0)'),
+ $this->tag)),
+ new Feed(Feed::ATOM,
+ common_local_url('api',
+ array('apiaction' => 'tags',
+ 'method' => 'timeline',
+ 'argument' => $this->tag.'.atom')),
+ sprintf(_('Notice feed for tag %s (Atom)'),
+ $this->tag)));
}
function showContent()