]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/NodeInfo110.php
Merge pull request #11360 from annando/announce-notification
[friendica.git] / src / Module / NodeInfo110.php
index 6681dcc020a3ac90ba953deda40e861672ede4de..9935e9089a24219ea891bf6abc119cb1a3fd922f 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -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));
        }
 }