Add support for source_url in Mastodon\InstanceV2
This commit is contained in:
parent
8640afc82e
commit
705b2d4c41
2 changed files with 4 additions and 1 deletions
|
@ -85,6 +85,7 @@ class InstanceV2 extends BaseApi
|
||||||
$domain = $this->baseUrl->getHost();
|
$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 . ')';
|
||||||
|
$source_url = 'https://git.friendi.ca/friendica/friendica';
|
||||||
$description = $this->config->get('config', 'info');
|
$description = $this->config->get('config', 'info');
|
||||||
$usage = $this->buildUsageInfo();
|
$usage = $this->buildUsageInfo();
|
||||||
$thumbnail = new InstanceEntity\Thumbnail($this->baseUrl . $this->contactHeader->getMastodonBannerPath());
|
$thumbnail = new InstanceEntity\Thumbnail($this->baseUrl . $this->contactHeader->getMastodonBannerPath());
|
||||||
|
@ -98,6 +99,7 @@ class InstanceV2 extends BaseApi
|
||||||
$domain,
|
$domain,
|
||||||
$title,
|
$title,
|
||||||
$version,
|
$version,
|
||||||
|
$source_url,
|
||||||
$description,
|
$description,
|
||||||
$usage,
|
$usage,
|
||||||
$thumbnail,
|
$thumbnail,
|
||||||
|
|
|
@ -81,6 +81,7 @@ class InstanceV2 extends BaseDataTransferObject
|
||||||
string $domain,
|
string $domain,
|
||||||
string $title,
|
string $title,
|
||||||
string $version,
|
string $version,
|
||||||
|
string $source_url,
|
||||||
string $description,
|
string $description,
|
||||||
Usage $usage,
|
Usage $usage,
|
||||||
Thumbnail $thumbnail,
|
Thumbnail $thumbnail,
|
||||||
|
@ -94,7 +95,7 @@ class InstanceV2 extends BaseDataTransferObject
|
||||||
$this->domain = $domain;
|
$this->domain = $domain;
|
||||||
$this->title = $title;
|
$this->title = $title;
|
||||||
$this->version = $version;
|
$this->version = $version;
|
||||||
$this->source_url = null; //not supported yet
|
$this->source_url = $source_url;
|
||||||
$this->description = $description;
|
$this->description = $description;
|
||||||
$this->usage = $usage;
|
$this->usage = $usage;
|
||||||
$this->thumbnail = $thumbnail;
|
$this->thumbnail = $thumbnail;
|
||||||
|
|
Loading…
Reference in a new issue