From 6cd271b10f892e8d85c4e542ad07dfb2cc616096 Mon Sep 17 00:00:00 2001 From: Hank Grabowski Date: Mon, 20 Feb 2023 13:33:13 -0500 Subject: [PATCH] Modify to use the new baseURL methods. --- src/Module/Api/Mastodon/InstanceV2.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Module/Api/Mastodon/InstanceV2.php b/src/Module/Api/Mastodon/InstanceV2.php index 647d292c73..2038081d87 100644 --- a/src/Module/Api/Mastodon/InstanceV2.php +++ b/src/Module/Api/Mastodon/InstanceV2.php @@ -76,12 +76,12 @@ class InstanceV2 extends BaseApi */ protected function rawContent(array $request = []) { - $domain = $this->baseUrl->getHostname(); + $domain = $this->baseUrl->getHost(); $title = $this->config->get('config', 'sitename'); $version = '2.8.0 (compatible; Friendica ' . App::VERSION . ')'; $description = $this->config->get('config', 'info'); $usage = $this->buildUsageInfo(); - $thumbnail = new InstanceEntity\Thumbnail($this->baseUrl->get() . 'images/friendica-banner.jpg'); + $thumbnail = new InstanceEntity\Thumbnail($this->baseUrl->withPath('images/friendica-banner.jpg')); $languages = [$this->config->get('system', 'language')]; $configuration = $this->buildConfigurationInfo(); $registration = $this->buildRegistrationsInfo();