Skip to content

Commit

Permalink
increased timeout for twitter calls
Browse files Browse the repository at this point in the history
  • Loading branch information
robrighter committed Apr 28, 2010
1 parent 01462b3 commit c71cb51
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions static/js/tweetwrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var tweetWrap = function (screenname, initcallback, notifyprogress, abandon){
var getFollowers = function (cursor){
var timeout = setTimeout(function(){
that.abandoncallback('The Twitter API is currently unavailable from your location. Please try again later.')}
,5000);
,9000);
$.ajax({
'url': ('http://api.twitter.com/1/statuses/followers.json?callback=?&screen_name='+ that.userscreenname +'&cursor='+cursor),
success: function(result) {
Expand All @@ -47,7 +47,7 @@ var tweetWrap = function (screenname, initcallback, notifyprogress, abandon){
var getFollowing = function (cursor){
var timeout = setTimeout(function(){
that.abandoncallback('The Twitter API is currently unavailable from your location. Please try again later.')}
,5000);
,9000);
$.ajax({
'url': ('http://api.twitter.com/1/statuses/friends.json?callback=?&screen_name='+ that.userscreenname + '&cursor=' + cursor),
success: function(result) {
Expand Down Expand Up @@ -116,7 +116,7 @@ var tweetWrap = function (screenname, initcallback, notifyprogress, abandon){
var diderror = true;
var timeout = setTimeout(function(){
that.abandoncallback('Either the user does not exist or the Twitter API is unavailable. Please try again later.')}
,5000);
,9000);

$.ajax({
'url': ('http://api.twitter.com/1/users/show.json?callback=?&screen_name='+screenname),
Expand Down

0 comments on commit c71cb51

Please sign in to comment.