Commit 74296fa12c7813ad5cdc80750173c11912b5860f

  • avatar
  • Zach Copley <zach @sta…us.net>
  • Sun Sep 20 01:34:07 GMT 2009
Make statuses/home_timeline return the same thing as statuses/friends_timeline to support apps trying to use the new retweet API method.
actions/twitapistatuses.php
(5 / 0)
  
136136
137137 }
138138
139 function home_timeline($args, $apidata)
140 {
141 call_user_func(array($this, 'friends_timeline'), $args, $apidata);
142 }
143
139144 function user_timeline($args, $apidata)
140145 {
141146 parent::handle($args);
lib/router.php
(3 / 3)
  
272272 $m->connect('api/statuses/:method',
273273 array('action' => 'api',
274274 'apiaction' => 'statuses'),
275 array('method' => '(public_timeline|friends_timeline|user_timeline|update|replies|mentions|show|friends|followers|featured)(\.(atom|rss|xml|json))?'));
275 array('method' => '(public_timeline|home_timeline|friends_timeline|user_timeline|update|replies|mentions|show|friends|followers|featured)(\.(atom|rss|xml|json))?'));
276276
277277 $m->connect('api/statuses/:method/:argument',
278278 array('action' => 'api',
279279 'apiaction' => 'statuses'),
280 array('method' => '(|user_timeline|friends_timeline|replies|mentions|show|destroy|friends|followers)'));
280 array('method' => '(user_timeline|home_timeline|friends_timeline|replies|mentions|show|destroy|friends|followers)'));
281281
282282 // users
283283
436436 $m->connect('api/statuses/:method/:argument',
437437 array('action' => 'api',
438438 'apiaction' => 'statuses'),
439 array('method' => '(|user_timeline|friends_timeline|replies|mentions|show|destroy|friends|followers)'));
439 array('method' => '(user_timeline|home_timeline|friends_timeline|replies|mentions|show|destroy|friends|followers)'));
440440
441441 $m->connect('api/statusnet/groups/:method/:argument',
442442 array('action' => 'api',

Comments

Add a new comment:

Login or create an account to post a comment

Add your comment