From 5d7985dcff4bc0a4ca1c3b76076e43de771de4bb Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Thu, 17 Aug 2023 07:28:17 -0400 Subject: [PATCH] Move default header image credits to static/defaults.config.php --- src/Model/Contact.php | 6 ------ static/defaults.config.php | 7 ++++++- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/Model/Contact.php b/src/Model/Contact.php index 23e1f2cbff..c6001ebb44 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -1899,12 +1899,6 @@ class Contact switch ($platform) { case 'friendica': case 'friendika': - /** - * Picture credits - * @author Lostinlight - * @license CC0 https://creativecommons.org/share-your-work/public-domain/cc0/ - * @link https://gitlab.com/lostinlight/per_aspera_ad_astra/-/blob/master/friendica-404/friendica-promo-bubbles.jpg - */ $header = DI::baseUrl() . '/images/friendica-banner.jpg'; break; case 'diaspora': diff --git a/static/defaults.config.php b/static/defaults.config.php index 4562da8987..33ed8211b4 100644 --- a/static/defaults.config.php +++ b/static/defaults.config.php @@ -783,7 +783,12 @@ return [ ], 'api' => [ // mastodon_banner (String) - // Banner for Mastodon API + // Default banner image for Mastodon API, must be a relative path from the base Friendica folder + // + // Default picture credits: + // Author: Lostinlight + // License: CC0 https://creativecommons.org/share-your-work/public-domain/cc0/ + // Link to original work: https://gitlab.com/lostinlight/per_aspera_ad_astra/-/blob/master/friendica-404/friendica-promo-bubbles.jpg 'mastodon_banner' => '/images/friendica-banner.jpg', ], 'blocklist' => [ -- 2.39.5