Fix: Force baseUrl being a string

This commit is contained in:
Michael 2023-04-15 14:17:30 +00:00
parent 68d9e1f33c
commit b0f880d0eb
5 changed files with 8 additions and 8 deletions

View file

@ -343,7 +343,7 @@ class Install extends BaseModule
*/
private function whatNext(): string
{
$baseurl = $this->baseUrl;
$baseurl = (string)$this->baseUrl;
return
$this->t('<h1>What next</h1>')
. "<p>" . $this->t('IMPORTANT: You will need to [manually] setup a scheduled task for the worker.')

View file

@ -232,7 +232,7 @@ class Import extends \Friendica\BaseModule
}
$oldBaseUrl = $account['baseurl'];
$newBaseUrl = $this->baseUrl;
$newBaseUrl = (string)$this->baseUrl;
$oldAddr = str_replace('http://', '@', Strings::normaliseLink($oldBaseUrl));
$newAddr = str_replace('http://', '@', Strings::normaliseLink($newBaseUrl));

View file

@ -105,7 +105,7 @@ class Xrd extends BaseModule
private function printSystemJSON(array $owner)
{
$baseURL = $this->baseUrl;
$baseURL = (string)$this->baseUrl;
$json = [
'subject' => 'acct:' . $owner['addr'],
'aliases' => [$owner['url']],
@ -151,7 +151,7 @@ class Xrd extends BaseModule
private function printJSON(string $alias, array $owner, array $avatar)
{
$baseURL = $this->baseUrl;
$baseURL = (string)$this->baseUrl;
$json = [
'subject' => 'acct:' . $owner['addr'],
@ -228,7 +228,7 @@ class Xrd extends BaseModule
private function printXML(string $alias, array $owner, array $avatar)
{
$baseURL = $this->baseUrl;
$baseURL = (string)$this->baseUrl;
$xmlString = XML::fromArray([
'XRD' => [