We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc25b94 commit a91e08aCopy full SHA for a91e08a
lib/omniauth/strategies/linkedin.rb
@@ -33,7 +33,7 @@ class LinkedIn < OmniAuth::Strategies::OAuth2
33
:last_name => raw_info['lastName'],
34
:location => raw_info['location'],
35
:description => raw_info['headline'],
36
- :image => raw_info['pictureUrls']['values'].first,
+ :image => raw_info.fetch('pictureUrls', {}).fetch('values', []).first,
37
:urls => {
38
'public_profile' => raw_info['publicProfileUrl']
39
}
0 commit comments