Adapt BaseURL calls to new UriInterface
This commit is contained in:
@@ -46,14 +46,14 @@ class HostMeta extends BaseModule
|
||||
$config->set('system', 'site_pubkey', $res['pubkey']);
|
||||
}
|
||||
|
||||
$domain = DI::baseUrl()->get();
|
||||
$domain = 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',
|
||||
|
||||
@@ -46,9 +46,9 @@ class NodeInfo extends BaseModule
|
||||
$nodeinfo = [
|
||||
'links' => [
|
||||
['rel' => 'http://nodeinfo.diaspora.software/ns/schema/1.0',
|
||||
'href' => DI::baseUrl()->get() . '/nodeinfo/1.0'],
|
||||
'href' => DI::baseUrl() . '/nodeinfo/1.0'],
|
||||
['rel' => 'http://nodeinfo.diaspora.software/ns/schema/2.0',
|
||||
'href' => DI::baseUrl()->get() . '/nodeinfo/2.0'],
|
||||
'href' => DI::baseUrl() . '/nodeinfo/2.0'],
|
||||
]
|
||||
];
|
||||
|
||||
|
||||
@@ -64,17 +64,17 @@ class XSocialRelay extends BaseModule
|
||||
'tags' => $tagList,
|
||||
'protocols' => [
|
||||
'activitypub' => [
|
||||
'actor' => DI::baseUrl()->get() . '/friendica',
|
||||
'receive' => DI::baseUrl()->get() . '/inbox'
|
||||
'actor' => DI::baseUrl() . '/friendica',
|
||||
'receive' => DI::baseUrl() . '/inbox'
|
||||
],
|
||||
'dfrn' => [
|
||||
'receive' => DI::baseUrl()->get() . '/dfrn_notify'
|
||||
'receive' => DI::baseUrl() . '/dfrn_notify'
|
||||
]
|
||||
]
|
||||
];
|
||||
|
||||
if (DI::config()->get("system", "diaspora_enabled")) {
|
||||
$relay['protocols']['diaspora'] = ['receive' => DI::baseUrl()->get() . '/receive/public'];
|
||||
$relay['protocols']['diaspora'] = ['receive' => DI::baseUrl() . '/receive/public'];
|
||||
}
|
||||
|
||||
System::jsonExit($relay);
|
||||
|
||||
Reference in New Issue
Block a user