mirror of
https://github.com/friendica/friendica
synced 2025-05-15 20: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
|
@ -408,7 +408,7 @@ class Item
|
|||
if ($notify) {
|
||||
// We have to avoid duplicates. So we create the GUID in form of a hash of the plink or uri.
|
||||
// We add the hash of our own host because our host is the original creator of the post.
|
||||
$prefix_host = DI::baseUrl()->getHostname();
|
||||
$prefix_host = DI::baseUrl()->getHost();
|
||||
} else {
|
||||
$prefix_host = '';
|
||||
|
||||
|
@ -2048,7 +2048,7 @@ class Item
|
|||
$guid = System::createUUID();
|
||||
}
|
||||
|
||||
return DI::baseUrl()->get() . '/objects/' . $guid;
|
||||
return DI::baseUrl() . '/objects/' . $guid;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -2288,7 +2288,7 @@ class Item
|
|||
}
|
||||
|
||||
// Prevent to forward already forwarded posts
|
||||
if ($datarray['app'] == DI::baseUrl()->getHostname()) {
|
||||
if ($datarray['app'] == DI::baseUrl()->getHost()) {
|
||||
Logger::info('Already forwarded (second test)');
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue