Skip to content

Commit bc25b94

Browse files
committed
using the first image of pictureUrls array as profile image
1 parent 58b732e commit bc25b94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/omniauth/strategies/linkedin.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class LinkedIn < OmniAuth::Strategies::OAuth2
3333
:last_name => raw_info['lastName'],
3434
:location => raw_info['location'],
3535
:description => raw_info['headline'],
36-
:image => raw_info['pictureUrls'],
36+
:image => raw_info['pictureUrls']['values'].first,
3737
:urls => {
3838
'public_profile' => raw_info['publicProfileUrl']
3939
}

0 commit comments

Comments
 (0)