1
0
Fork 0
mirror of https://github.com/omniauth/omniauth.git synced 2022-11-09 12:31:49 -05:00

Merge pull request #378 from thickpaddy/master

Fixed - Invalid response when linked in user has no public profile url
This commit is contained in:
Erik Michaels-Ober 2011-07-10 09:59:44 -07:00
commit f6f7d5ef42

View file

@ -29,7 +29,7 @@ module OmniAuth
'id' => person['id'],
'first_name' => person['first_name'],
'last_name' => person['last_name'],
'nickname' => person['public_profile_url'].split('/').last,
'nickname' => person['public_profile_url'].to_s.split('/').last,
'location' => person['location']['name'],
'image' => person['picture_url'],
'description' => person['headline'],