]> git.mxchange.org Git - friendica-addons.git/commitdiff
Fill the header field of the contact with the twitter banner
authorMichael <heluecht@pirati.ca>
Tue, 22 Jun 2021 15:00:59 +0000 (15:00 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 22 Jun 2021 15:00:59 +0000 (15:00 +0000)
twitter/twitter.php

index d6867e73ae7f028641c88d44fcf32bf8ddc96f1b..e972d692bf5806cdb33c01d1c93c3de331999dea 100644 (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;