mirror of
https://github.com/friendica/friendica
synced 2025-04-22 06:30:11 +00:00
Replace remaining references to default banner image by api.mastodon_banner configuration value
- Ensure leading slash is present at every place the configuration value is used
This commit is contained in:
parent
5d7985dcff
commit
dad3404ac5
5 changed files with 61 additions and 6 deletions
|
@ -24,6 +24,7 @@ namespace Friendica\Object\Api\Mastodon;
|
|||
use Friendica\App;
|
||||
use Friendica\App\BaseURL;
|
||||
use Friendica\BaseDataTransferObject;
|
||||
use Friendica\Contact\Header;
|
||||
use Friendica\Core\Config\Capability\IManageConfigValues;
|
||||
use Friendica\Database\Database;
|
||||
use Friendica\DI;
|
||||
|
@ -91,7 +92,7 @@ class Instance extends BaseDataTransferObject
|
|||
$this->version = '2.8.0 (compatible; Friendica ' . App::VERSION . ')';
|
||||
$this->urls = ['streaming_api' => '']; // Not supported
|
||||
$this->stats = new Stats($config, $database);
|
||||
$this->thumbnail = $baseUrl . $config->get('api', 'mastodon_banner');
|
||||
$this->thumbnail = $baseUrl . (new Header($config))->getMastodonBannerPath();
|
||||
$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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue