From 8ad94fef9bdbae4a328d5b30b094158485618cc8 Mon Sep 17 00:00:00 2001
From: Hypolite Petovan <hypolite@mrpetovan.com>
Date: Sat, 7 Jan 2023 22:37:58 -0500
Subject: [PATCH] Change "thumbnail" for default Friendica banner image in
 Api\Mastodon\Instance

---
 src/Object/Api/Mastodon/Instance.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Object/Api/Mastodon/Instance.php b/src/Object/Api/Mastodon/Instance.php
index fe1a9b3fef..14914cd7fc 100644
--- a/src/Object/Api/Mastodon/Instance.php
+++ b/src/Object/Api/Mastodon/Instance.php
@@ -54,7 +54,7 @@ class Instance extends BaseDataTransferObject
 	protected $urls;
 	/** @var Stats */
 	protected $stats;
-	/** @var string|null */
+	/** @var string|null This is meant as a server banner, default Mastodon "thumbnail" is 1600×620px */
 	protected $thumbnail = null;
 	/** @var array */
 	protected $languages;
@@ -91,7 +91,7 @@ class Instance extends BaseDataTransferObject
 		$this->version           = '2.8.0 (compatible; Friendica ' . App::VERSION . ')';
 		$this->urls              = null; // Not supported
 		$this->stats             = new Stats($config, $database);
-		$this->thumbnail         = $baseUrl->get() . ($config->get('system', 'shortcut_icon') ?? 'images/friendica-32.png');
+		$this->thumbnail         = $baseUrl->get() . 'images/friendica-banner.jpg';
 		$this->languages         = [$config->get('system', 'language')];
 		$this->max_toot_chars    = (int)$config->get('config', 'api_import_size', $config->get('config', 'max_import_size'));
 		$this->registrations     = ($register_policy != Register::CLOSED);