]> git.mxchange.org Git - friendica.git/commitdiff
Changes:
authorRoland Häder <roland@mxchange.org>
Mon, 3 Jul 2023 17:54:41 +0000 (19:54 +0200)
committerRoland Häder <roland@mxchange.org>
Mon, 3 Jul 2023 17:55:47 +0000 (19:55 +0200)
- renamed 'api_mastodon_banner' to 'mastodon_banner' and moved it to 'api'
  configuration group

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

index 7201e530cedc4372713fd42260c12a95e195d13b..e19f6ba135e701981b5aef40893860ded7d27dbd 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 . $config->get('config', 'api_mastodon_banner');
+               $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);
index 197d062900be8ac76371911bafb62b35a8adf08f..e8f44613ce2d0034f0df335f5338d440ba7e8daa 100644 (file)
@@ -91,10 +91,6 @@ 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)
@@ -785,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',
+       ],
 ];