Merge pull request #13248 from Quix0r/features/config-api-mastodon-banner

Configuration key api_mastodon_banner added
This commit is contained in:
Hypolite Petovan 2023-07-03 16:30:58 -04:00 committed by GitHub
commit 394a351784
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View 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('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);

View file

@ -781,4 +781,9 @@ return [
// By default the template cache is stored in several subdirectories.
'use_sub_dirs' => true,
],
'api' => [
// mastodon_banner (String)
// Banner for Mastodon API
'mastodon_banner' => '/images/friendica-banner.jpg',
],
];