Mercurial > summit-idp
changeset 56:bd71f612d3b1
made twitter thumbnails point to tweetimag.es.
author | Atul Varma <avarma@mozilla.com> |
---|---|
date | Mon, 28 Jun 2010 13:02:45 -0700 |
parents | 0a9c62c25938 |
children | 83c3f19d7770 |
files | static-files/index.js |
diffstat | 1 files changed, 10 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/static-files/index.js Sun Jun 27 11:21:52 2010 -0700 +++ b/static-files/index.js Mon Jun 28 13:02:45 2010 -0700 @@ -55,11 +55,16 @@ var elem = $("#templates .attendee").clone(); elem.find(".name").text(person.name || "Anonymous Human"); var profileImageURL = person.profileImageURL; - if (!profileImageURL && person.twitterScreenName) - profileImageURL = ("http://api.twitter.com/1/users/" + - "profile_image/" + - person.twitterScreenName + - ".xml?size=normal"); + if (!profileImageURL && person.twitterScreenName) { + // This used to be: + // "http://api.twitter.com/1/users/profile_image/" + + // screenName + ".xml?size=normal" + // But Twitter's API is rate-limited and/or slow, so we're + // using Joe Stump's awesome service instead. + + profileImageURL = ("http://img.tweetimag.es/i/" + + person.twitterScreenName + "_n"); + } if (profileImageURL) elem.find(".headshot img").attr("src", profileImageURL);