]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Make statuses/home_timeline return the same thing as statuses/friends_timeline to...
authorZach Copley <zach@status.net>
Sun, 20 Sep 2009 01:34:07 +0000 (18:34 -0700)
committerZach Copley <zach@status.net>
Sun, 20 Sep 2009 01:41:28 +0000 (18:41 -0700)
actions/twitapistatuses.php
lib/router.php

index ad6654dff54321f7d0a5c0089791cd60e75134ee..2f10ff966c8113a34477e4b7e2832945f447b385 100644 (file)
@@ -136,6 +136,11 @@ class TwitapistatusesAction extends TwitterapiAction
 
     }
 
+    function home_timeline($args, $apidata)
+    {
+        call_user_func(array($this, 'friends_timeline'), $args, $apidata);
+    }
+
     function user_timeline($args, $apidata)
     {
         parent::handle($args);
index 8f13b8852009997165c076c3ba22f4bee1a05e47..2c4d63b0d794df6a1973d7c26dd77c8373576f3f 100644 (file)
@@ -265,12 +265,12 @@ class Router
         $m->connect('api/statuses/:method',
                     array('action' => 'api',
                           'apiaction' => 'statuses'),
-                    array('method' => '(public_timeline|friends_timeline|user_timeline|update|replies|mentions|show|friends|followers|featured)(\.(atom|rss|xml|json))?'));
+                    array('method' => '(public_timeline|home_timeline|friends_timeline|user_timeline|update|replies|mentions|show|friends|followers|featured)(\.(atom|rss|xml|json))?'));
 
         $m->connect('api/statuses/:method/:argument',
                     array('action' => 'api',
                           'apiaction' => 'statuses'),
-                    array('method' => '(|user_timeline|friends_timeline|replies|mentions|show|destroy|friends|followers)'));
+                    array('method' => '(user_timeline|home_timeline|friends_timeline|replies|mentions|show|destroy|friends|followers)'));
 
         // users
 
@@ -429,7 +429,7 @@ class Router
         $m->connect('api/statuses/:method/:argument',
                     array('action' => 'api',
                           'apiaction' => 'statuses'),
-                    array('method' => '(|user_timeline|friends_timeline|replies|mentions|show|destroy|friends|followers)'));
+                    array('method' => '(user_timeline|home_timeline|friends_timeline|replies|mentions|show|destroy|friends|followers)'));
 
         $m->connect('api/statusnet/groups/:method/:argument',
                     array('action' => 'api',