Merge pull request #1136 from annando/header

Fill the header field of the contact with the twitter banner
This commit is contained in:
Hypolite Petovan 2021-06-22 11:19:59 -04:00 committed by GitHub
commit 17f6c8902b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1217,6 +1217,7 @@ function twitter_user_to_contact($data)
'location' => $data->location,
'about' => $data->description,
'photo' => twitter_fix_avatar($data->profile_image_url_https),
'header' => $data->profile_banner_url ?? $data->profile_background_image_url_https,
];
return $fields;