]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/WellKnown/HostMeta.php
Changes:
[friendica.git] / src / Module / WellKnown / HostMeta.php
index 75976ac36b325576c7f8a0e070e108e5099562b5..717f13879c15ab26f940e6e59923074616887379 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2023, the Friendica project
+ * @copyright Copyright (C) 2010-2024, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -46,7 +46,7 @@ class HostMeta extends BaseModule
                        $config->set('system', 'site_pubkey', $res['pubkey']);
                }
 
-               $domain = DI::baseUrl();
+               $domain = (string)DI::baseUrl();
 
                XML::fromArray([
                        'XRD' => [
@@ -90,6 +90,6 @@ class HostMeta extends BaseModule
                        ],
                ], $xml, false, ['hm' => 'http://host-meta.net/xrd/1.0', 'mk' => 'http://salmon-protocol.org/ns/magic-key']);
 
-               System::httpExit($xml->saveXML(), Response::TYPE_XML, 'application/xrd+xml');
+               $this->httpExit($xml->saveXML(), Response::TYPE_XML, 'application/xrd+xml');
        }
 }