summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2009-10-06 15:39:13 -0700
committerZach Copley <zach@status.net>2009-10-06 15:39:13 -0700
commit8d284ca82c1e33a102ef4cb7aa150dd54d876ec7 (patch)
tree893442fef1159b0060b911915beeeeb8fda50c63 /lib
parentf7688bec0d7683f0bad1bbb9806a7a6f5a261901 (diff)
New action for tag timelines in the API
Diffstat (limited to 'lib')
-rw-r--r--lib/router.php10
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/router.php b/lib/router.php
index 6541d69f1..03210ce98 100644
--- a/lib/router.php
+++ b/lib/router.php
@@ -532,13 +532,9 @@ class Router
'apiaction' => 'groups'));
// Tags
- $m->connect('api/statusnet/tags/:method/:argument',
- array('action' => 'api',
- 'apiaction' => 'tags'));
-
- $m->connect('api/statusnet/tags/:method',
- array('action' => 'api',
- 'apiaction' => 'tags'));
+ $m->connect('api/statusnet/tags/timeline/:tag.:format',
+ array('action' => 'ApiTimelineTag',
+ 'format' => '(xmljson|rss|atom)'));
// search
$m->connect('api/search.atom', array('action' => 'twitapisearchatom'));