2019-12-10 22:27:09 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Friendica\Module\Api\Mastodon;
|
|
|
|
|
2019-12-11 07:51:59 +01:00
|
|
|
use Friendica\Api\Mastodon\Instance as InstanceEntity;
|
2019-12-10 22:27:09 +01:00
|
|
|
use Friendica\Core\System;
|
|
|
|
use Friendica\Module\Base\Api;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @see https://docs.joinmastodon.org/api/rest/instances/
|
|
|
|
*/
|
|
|
|
class Instance extends Api
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @param array $parameters
|
|
|
|
* @throws HTTPException\InternalServerErrorException
|
|
|
|
*/
|
|
|
|
public static function rawContent(array $parameters = [])
|
|
|
|
{
|
2019-12-11 07:51:59 +01:00
|
|
|
System::jsonExit(InstanceEntity::get(self::getApp()));
|
2019-12-10 22:27:09 +01:00
|
|
|
}
|
|
|
|
}
|