$config->set('system', 'site_pubkey', $res['pubkey']);
}
- $domain = DI::baseUrl()->get();
+ $domain = (string)DI::baseUrl();
XML::fromArray([
'XRD' => [
'@attributes' => [
'xmlns' => 'http://docs.oasis-open.org/ns/xri/xrd-1.0',
],
- 'hm:Host' => DI::baseUrl()->getHostname(),
+ 'hm:Host' => DI::baseUrl()->getHost(),
'1:link' => [
'@attributes' => [
'rel' => 'lrdd',
'href' => $domain . '/amcd'
]
],
- '5:link' => [
- '@attributes' => [
- 'rel' => 'http://oexchange.org/spec/0.8/rel/resident-target',
- 'type' => 'application/xrd+xml',
- 'href' => $domain . '/oexchange/xrd'
- ]
- ],
'Property' => [
'@attributes' => [
'type' => 'http://salmon-protocol.org/ns/magic-key',