From b4839e8a37667330751140ded733f8cb1378ac69 Mon Sep 17 00:00:00 2001
From: Michael <heluecht@pirati.ca>
Date: Tue, 22 Jun 2021 15:00:59 +0000
Subject: [PATCH] Fill the header field of the contact with the twitter banner

---
 twitter/twitter.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/twitter/twitter.php b/twitter/twitter.php
index d6867e73..e972d692 100644
--- a/twitter/twitter.php
+++ b/twitter/twitter.php
@@ -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;