Skip to content

Commit

Permalink
fixes #378, broken twitter-avatars
Browse files Browse the repository at this point in the history
the old public-api doesn't exist anymore, new api needs auth.
Links in the form of twitter.com/[username]/profile_picture do work.
  • Loading branch information
madpew committed Mar 12, 2016
1 parent 2b69a2f commit b96541e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ $(function () {
prettyPrint()

$(['OscarGodson', 'johnmdonahue', 'adam_bickford', 'sebnitu']).each(function (idx, val) {
var twimg = 'http://twitter.com/api/users/profile_image?screen_name=' + val
, twlink = 'http://twitter.com/' + val
var twimg = 'http://twitter.com/' + val + '/profile_image', twlink = 'http://twitter.com/' + val

$('#avatars').append('<a href="' + twlink + '"><img class="avatar" src="' + twimg + '">')
})
Expand Down

0 comments on commit b96541e

Please sign in to comment.