Permalink
Browse files

Fixed the Twitter extension, for now. Note this change will likely st…

…op working around March 2013, when Twitter completly phases out their XML-based API.
  • Loading branch information...
1 parent e39e9e8 commit 6d5735a0554cc1b42f648cb6e714c89171dd09a1 @AaronVanGeffen AaronVanGeffen committed Nov 2, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 extensions/twitter/extension.inc.php
@@ -67,9 +67,9 @@ function get_url($page=1, $count=20)
}
else
{
- $url_base = 'http://twitter.com';
+ $url_base = 'http://api.twitter.com';
}
- return $url_base . '/statuses/user_timeline/'.$this->get_option('username').'.rss?page='.$page.'&count='.$count.'&source=twitterandroid';
+ return $url_base . '/1/statuses/user_timeline.rss?screen_name='.$this->get_option('username').'&page='.$page.'&count='.$count.'&source=twitterandroid';
}
function save()
@@ -137,4 +137,4 @@ function lifestream_twitter_status($links=true)
}
$lifestream->register_feed('Lifestream_TwitterFeed');
-?>
+?>

0 comments on commit 6d5735a

Please sign in to comment.