Modify to use the new baseURL methods.
This commit is contained in:
parent
06f53d2d1a
commit
6cd271b10f
1 changed files with 2 additions and 2 deletions
|
@ -76,12 +76,12 @@ class InstanceV2 extends BaseApi
|
||||||
*/
|
*/
|
||||||
protected function rawContent(array $request = [])
|
protected function rawContent(array $request = [])
|
||||||
{
|
{
|
||||||
$domain = $this->baseUrl->getHostname();
|
$domain = $this->baseUrl->getHost();
|
||||||
$title = $this->config->get('config', 'sitename');
|
$title = $this->config->get('config', 'sitename');
|
||||||
$version = '2.8.0 (compatible; Friendica ' . App::VERSION . ')';
|
$version = '2.8.0 (compatible; Friendica ' . App::VERSION . ')';
|
||||||
$description = $this->config->get('config', 'info');
|
$description = $this->config->get('config', 'info');
|
||||||
$usage = $this->buildUsageInfo();
|
$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')];
|
$languages = [$this->config->get('system', 'language')];
|
||||||
$configuration = $this->buildConfigurationInfo();
|
$configuration = $this->buildConfigurationInfo();
|
||||||
$registration = $this->buildRegistrationsInfo();
|
$registration = $this->buildRegistrationsInfo();
|
||||||
|
|
Loading…
Reference in a new issue