Replace IRespondToRequests with PSR-7 ResponseInterface
This commit is contained in:
@@ -23,7 +23,7 @@ namespace Friendica\Module;
|
||||
|
||||
use Friendica\App;
|
||||
use Friendica\BaseModule;
|
||||
use Friendica\Capabilities\IRespondToRequests;
|
||||
use Friendica\Capabilities\ICanCreateResponses;
|
||||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\Config\Capability\IManageConfigValues;
|
||||
use Friendica\Core\L10n;
|
||||
@@ -98,7 +98,7 @@ class NodeInfo110 extends BaseModule
|
||||
|
||||
$nodeinfo['metadata']['explicitContent'] = $this->config->get('system', 'explicit_content', false) == true;
|
||||
|
||||
$this->response->setType(IRespondToRequests::TYPE_JSON);
|
||||
$this->response->setType(ICanCreateResponses::TYPE_JSON);
|
||||
$this->response->addContent(json_encode($nodeinfo, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user