From: Michael Date: Sun, 9 Jan 2022 11:19:31 +0000 (+0000) Subject: Always generate a random header if missing X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=10bdaa0cfe0908bb15ab688e60db52ddb0e5e1f3;p=friendica.git Always generate a random header if missing --- diff --git a/src/Model/Contact.php b/src/Model/Contact.php index 65ee65ab32..9d609786e9 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -1668,8 +1668,8 @@ class Contact */ public static function getDefaultHeader(array $contact): string { - if (!empty($contact['header']) || in_array($contact['network'], [Protocol::ACTIVITYPUB, Protocol::TWITTER])) { - return DI::baseUrl() . '/images/blank.png'; + if (!empty($contact['header'])) { + return $contact['header']; } if (!empty($contact['gsid'])) { @@ -1702,7 +1702,7 @@ class Contact break; default: /** - * Use random pictures for networks that don't provide banners. + * Use a random picture. * The service provides random pictures from Unsplash. * @license https://unsplash.com/license */