mirror of
https://github.com/friendica/friendica
synced 2025-05-18 08:24:11 +02:00
Adapt BaseURL calls to new UriInterface
This commit is contained in:
parent
9e6d95284b
commit
f0c29edcde
101 changed files with 218 additions and 241 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue