private static function printSystemJSON(array $owner)
{
+ $baseURL = $this->baseurl->get();
$json = [
'subject' => 'acct:' . $owner['addr'],
'aliases' => [$owner['url']],
],
[
'rel' => 'http://ostatus.org/schema/1.0/subscribe',
- 'template' => DI::baseUrl()->get() . '/follow?url={uri}',
+ 'template' => $baseURL . '/follow?url={uri}',
],
[
'rel' => ActivityNamespace::FEED,
'type' => 'application/atom+xml',
- 'href' => $owner['poll'] ?? DI::baseUrl()->get(),
+ 'href' => $owner['poll'] ?? $baseURL,
],
[
'rel' => 'salmon',
- 'href' => DI::baseUrl()->get() . '/salmon/' . $owner['nickname'],
+ 'href' => $baseURL . '/salmon/' . $owner['nickname'],
],
[
'rel' => 'http://microformats.org/profile/hcard',
'type' => 'text/html',
- 'href' => DI::baseUrl()->get() . '/hcard/' . $owner['nickname'],
+ 'href' => $baseURL . '/hcard/' . $owner['nickname'],
],
[
'rel' => 'http://joindiaspora.com/seed_location',
'type' => 'text/html',
- 'href' => DI::baseUrl()->get(),
+ 'href' => $baseURL,
],
]
];
private static function printJSON(string $alias, array $owner, array $avatar)
{
- $baseURL = DI::baseUrl()->get();
+ $baseURL = $this->baseurl->get();
$salmon_key = Salmon::salmonKey($owner['spubkey']);
$json = [
private static function printXML(string $alias, array $user, array $owner, array $avatar)
{
- $baseURL = DI::baseUrl()->get();
+ $baseURL = $this->baseurl->get();
$salmon_key = Salmon::salmonKey($owner['spubkey']);
$tpl = Renderer::getMarkupTemplate('xrd_person.tpl');