Skip to content

Commit

Permalink
jasonmayes#176 Changes profile_image to use avatar src
Browse files Browse the repository at this point in the history
  • Loading branch information
mpellegrin committed Jun 17, 2018
1 parent 6db2230 commit 34a9803
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions js/twitterFetcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,8 @@
author: authors[n] ? authors[n].innerHTML : 'Unknown Author',
author_data: {
profile_url: authors[n] ? authors[n].querySelector('[data-scribe="element:user_link"]').href : null,
profile_image: authors[n] ?
'https://twitter.com/' + authors[n].querySelector('[data-scribe="element:screen_name"]').title.split('@')[1] + '/profile_image?size=bigger' : null,
profile_image_2x: authors[n] ? 'https://twitter.com/' + authors[n].querySelector('[data-scribe="element:screen_name"]').title.split('@')[1] + '/profile_image?size=original' : null,
profile_image: authors[n] ? authors[n].querySelector('[data-scribe="element:avatar"]').src : null,
profile_image_2x: authors[n] ? authors[n].querySelector('[data-scribe="element:avatar"]').src : null,
screen_name: authors[n] ? authors[n].querySelector('[data-scribe="element:screen_name"]').title : null,
name: authors[n] ? authors[n].querySelector('[data-scribe="element:name"]').title : null
},
Expand Down

0 comments on commit 34a9803

Please sign in to comment.