]> git.mxchange.org Git - friendica.git/commitdiff
Added:
authorRoland Häder <roland@mxchange.org>
Mon, 3 Jul 2023 12:56:08 +0000 (14:56 +0200)
committerRoland Häder <roland@mxchange.org>
Mon, 3 Jul 2023 12:59:26 +0000 (14:59 +0200)
- config key 'config', 'api_mastodon_banner', see discussion at https://b65.me.in/display/67fef576-1564-a27a-405e-c17705255720
- the administrator can now customize it for Mastodon contacts
- credits goes to @betamax65@b65.me.in

src/Object/Api/Mastodon/Instance.php
static/defaults.config.php

index 118d491fc91fad7f889a5aca1323f561fcbd36cd..7201e530cedc4372713fd42260c12a95e195d13b 100644 (file)
@@ -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 . '/images/friendica-banner.jpg';
+               $this->thumbnail         = $baseUrl . $config->get('config', 'api_mastodon_banner');
                $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);
index 273095315789606f13c5fc7f83ec9f0c542baab7..197d062900be8ac76371911bafb62b35a8adf08f 100644 (file)
@@ -91,6 +91,10 @@ return [
                // php_path (String)
                // Location of PHP command line processor.
                'php_path' => 'php',
+
+               // api_mastodon_banner (String)
+               // Banner for Mastodon API
+               'api_mastodon_banner' => '/images/friendica-banner.jpg',
        ],
        'system' => [
                // adjust_poll_frequency (Boolean)