X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FObject%2FApi%2FMastodon%2FInstance.php;h=18707356ef9f0208803d552f4d9ac1304e18996a;hb=199ac6420275e7a18ca8a25ca83dcb5fdf7c388a;hp=a7549afd8489cd055cf9cbe59fe994403c85cfd1;hpb=02afde3eecbf148bb12d23afe09bb13a813ad50b;p=friendica.git diff --git a/src/Object/Api/Mastodon/Instance.php b/src/Object/Api/Mastodon/Instance.php index a7549afd84..18707356ef 100644 --- a/src/Object/Api/Mastodon/Instance.php +++ b/src/Object/Api/Mastodon/Instance.php @@ -31,6 +31,7 @@ use Friendica\DI; use Friendica\Model\User; use Friendica\Module\Register; use Friendica\Network\HTTPException; +use Friendica\Object\Api\Mastodon\InstanceV2\Configuration; /** * Class Instance @@ -68,6 +69,8 @@ class Instance extends BaseDataTransferObject /** @var bool */ protected $invites_enabled; /** @var Account|null */ + /** @var Configuration */ + protected $configuration; protected $contact_account = null; /** @var array */ protected $rules = []; @@ -81,7 +84,7 @@ class Instance extends BaseDataTransferObject * @throws HTTPException\NotFoundException * @throws \ImagickException */ - public function __construct(IManageConfigValues $config, BaseURL $baseUrl, Database $database, array $rules = []) + public function __construct(IManageConfigValues $config, BaseURL $baseUrl, Database $database, array $rules = [], Configuration $configuration) { $register_policy = intval($config->get('config', 'register_policy')); @@ -98,6 +101,7 @@ class Instance extends BaseDataTransferObject $this->registrations = ($register_policy != Register::CLOSED); $this->approval_required = ($register_policy == Register::APPROVE); $this->invites_enabled = false; + $this->configuration = $configuration; $this->contact_account = []; $this->rules = $rules;