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:
commit
f6f7d5ef42
1 changed files with 1 additions and 1 deletions
|
@ -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'],
|
||||
|
|
Loading…
Reference in a new issue