Permalink
Browse files

Use id_str to avoid javascript int problems

  • Loading branch information...
1 parent c1b3189 commit a62f3860734247ee840b6d6cad74ce5d4519506c @jberkel committed Mar 22, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/jquery.twitter.js
View
4 js/jquery.twitter.js
@@ -41,7 +41,7 @@
// show container element
$(this).show();
- $.getJSON("http://twitter.com/statuses/user_timeline/"+o.userName+".json?count="+(o.numTweets+10)+"&callback=?",
+ $.getJSON("http://twitter.com/statuses/user_timeline.json?screen_name="+o.userName +"&count="+(o.numTweets+10)+"&trim_user=1&callback=?",
function(tweets) {
// remove preLoader from container element
@@ -60,7 +60,7 @@
return reply.charAt(0)+'<a href="http://twitter.com/'+reply.substring(1)+'">'+reply.substring(1)+'</a>';
});
statusHTML.push('<li><span>'+
- status+'</span> <a style="font-size:85%" href="http://twitter.com/'+username+'/statuses/'+tweets[i].id+'">'+
+ status+'</span> <a style="font-size:85%" href="http://twitter.com/'+username+'/statuses/'+tweets[i].id_str+'">'+
$.fn.getTwitter.relative_time(tweets[i].created_at)+
'</a></li>');
}

0 comments on commit a62f386

Please sign in to comment.