mirror of
https://github.com/friendica/friendica
synced 2024-11-13 07:02:54 +00:00
Fix fatal errors caused by PR 8019
This commit is contained in:
parent
03038e7a3b
commit
74f4637ff3
6 changed files with 6 additions and 6 deletions
|
@ -80,7 +80,7 @@ class Magic extends BaseModule
|
||||||
$headers = HTTPSignature::createSig(
|
$headers = HTTPSignature::createSig(
|
||||||
$headers,
|
$headers,
|
||||||
$user['prvkey'],
|
$user['prvkey'],
|
||||||
'acct:' . $user['nickname'] . '@' . DI::baseUrl()->getHostname()() . (DI::baseUrl()->getUrlPath() ? '/' . DI::baseUrl()->getUrlPath() : '')
|
'acct:' . $user['nickname'] . '@' . DI::baseUrl()->getHostname() . (DI::baseUrl()->getUrlPath() ? '/' . DI::baseUrl()->getUrlPath() : '')
|
||||||
);
|
);
|
||||||
|
|
||||||
// Try to get an authentication token from the other instance.
|
// Try to get an authentication token from the other instance.
|
||||||
|
|
|
@ -21,7 +21,7 @@ class OpenSearch extends BaseModule
|
||||||
{
|
{
|
||||||
header('Content-type: application/opensearchdescription+xml');
|
header('Content-type: application/opensearchdescription+xml');
|
||||||
|
|
||||||
$hostname = DI::baseUrl()->getHostname()();
|
$hostname = DI::baseUrl()->getHostname();
|
||||||
$baseUrl = DI::baseUrl()->get();
|
$baseUrl = DI::baseUrl()->get();
|
||||||
|
|
||||||
/** @var DOMDocument $xml */
|
/** @var DOMDocument $xml */
|
||||||
|
|
|
@ -132,7 +132,7 @@ class Register extends BaseModule
|
||||||
'$username' => $username,
|
'$username' => $username,
|
||||||
'$email' => $email,
|
'$email' => $email,
|
||||||
'$nickname' => $nickname,
|
'$nickname' => $nickname,
|
||||||
'$sitename' => DI::baseUrl()->getHostname()(),
|
'$sitename' => DI::baseUrl()->getHostname(),
|
||||||
'$importh' => L10n::t('Import'),
|
'$importh' => L10n::t('Import'),
|
||||||
'$importt' => L10n::t('Import your profile to this friendica instance'),
|
'$importt' => L10n::t('Import your profile to this friendica instance'),
|
||||||
'$showtoslink' => Config::get('system', 'tosdisplay'),
|
'$showtoslink' => Config::get('system', 'tosdisplay'),
|
||||||
|
|
|
@ -29,7 +29,7 @@ class HostMeta extends BaseModule
|
||||||
|
|
||||||
$tpl = Renderer::getMarkupTemplate('xrd_host.tpl');
|
$tpl = Renderer::getMarkupTemplate('xrd_host.tpl');
|
||||||
echo Renderer::replaceMacros($tpl, [
|
echo Renderer::replaceMacros($tpl, [
|
||||||
'$zhost' => DI::baseUrl()->getHostname()(),
|
'$zhost' => DI::baseUrl()->getHostname(),
|
||||||
'$zroot' => DI::baseUrl()->get(),
|
'$zroot' => DI::baseUrl()->get(),
|
||||||
'$domain' => DI::baseUrl()->get(),
|
'$domain' => DI::baseUrl()->get(),
|
||||||
'$bigkey' => Salmon::salmonKey($config->get('system', 'site_pubkey'))
|
'$bigkey' => Salmon::salmonKey($config->get('system', 'site_pubkey'))
|
||||||
|
|
|
@ -466,7 +466,7 @@ class Feed {
|
||||||
// Distributed items should have a well formatted URI.
|
// Distributed items should have a well formatted URI.
|
||||||
// Additionally we have to avoid conflicts with identical URI between imported feeds and these items.
|
// Additionally we have to avoid conflicts with identical URI between imported feeds and these items.
|
||||||
if ($notify) {
|
if ($notify) {
|
||||||
$item['guid'] = Item::guidFromUri($orig_plink, DI::baseUrl()->getHostname()());
|
$item['guid'] = Item::guidFromUri($orig_plink, DI::baseUrl()->getHostname());
|
||||||
unset($item['uri']);
|
unset($item['uri']);
|
||||||
unset($item['parent-uri']);
|
unset($item['parent-uri']);
|
||||||
|
|
||||||
|
|
|
@ -1847,7 +1847,7 @@ class OStatus
|
||||||
}
|
}
|
||||||
|
|
||||||
$item["uri"] = $item['parent-uri'] = $item['thr-parent']
|
$item["uri"] = $item['parent-uri'] = $item['thr-parent']
|
||||||
= 'tag:' . DI::baseUrl()->getHostname()().
|
= 'tag:' . DI::baseUrl()->getHostname().
|
||||||
','.date('Y-m-d').':'.$action.':'.$owner['uid'].
|
','.date('Y-m-d').':'.$action.':'.$owner['uid'].
|
||||||
':person:'.$connect_id.':'.$item['created'];
|
':person:'.$connect_id.':'.$item['created'];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue