]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/WellKnown/NodeInfo.php
Merge remote-tracking branch 'upstream/develop' into inbox-gsid
[friendica.git] / src / Module / WellKnown / NodeInfo.php
index a4197928067eedfeb0483407ba36ba541e39ea8e..e1c486c2eb9402043994396bee6b3ff3a7ab822c 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -22,6 +22,7 @@
 namespace Friendica\Module\WellKnown;
 
 use Friendica\BaseModule;
+use Friendica\Core\System;
 use Friendica\DI;
 
 /**
@@ -30,7 +31,7 @@ use Friendica\DI;
  */
 class NodeInfo extends BaseModule
 {
-       public function rawContent()
+       protected function rawContent(array $request = [])
        {
                self::printWellKnown();
        }
@@ -51,8 +52,6 @@ class NodeInfo extends BaseModule
                        ]
                ];
 
-               header('Content-type: application/json; charset=utf-8');
-               echo json_encode($nodeinfo, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
-               exit;
+               System::jsonExit($nodeinfo);
        }
 }