]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/WellKnown/XSocialRelay.php
Merge remote-tracking branch 'upstream/develop' into inbox-gsid
[friendica.git] / src / Module / WellKnown / XSocialRelay.php
index c401825236c72907829d9e096fc5e8dd2c68d797..4ee495984f03133d713ffb6e91c9445b67b814e0 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;
 use Friendica\Model\Search;
 use Friendica\Protocol\Relay;
@@ -32,7 +33,7 @@ use Friendica\Protocol\Relay;
  */
 class XSocialRelay extends BaseModule
 {
-       public function rawContent()
+       protected function rawContent(array $request = [])
        {
                $config = DI::config();
 
@@ -76,8 +77,6 @@ class XSocialRelay extends BaseModule
                        $relay['protocols']['diaspora'] = ['receive' => DI::baseUrl()->get() . '/receive/public'];
                }
 
-               header('Content-type: application/json; charset=utf-8');
-               echo json_encode($relay, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
-               exit;
+               System::jsonExit($relay);
        }
 }