mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 10:04:26 +02:00
Remove deprecated App::getHostName() - process methods to DI::baseUrl()->getHostName()
This commit is contained in:
parent
2900389696
commit
50be94aa5e
23 changed files with 34 additions and 50 deletions
|
@ -1279,7 +1279,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 = \get_app()->getHostName();
|
||||
$prefix_host = DI::baseUrl()->getHostname();
|
||||
} else {
|
||||
$prefix_host = '';
|
||||
|
||||
|
@ -2752,8 +2752,6 @@ class Item
|
|||
|
||||
public static function isRemoteSelf($contact, &$datarray)
|
||||
{
|
||||
$a = \get_app();
|
||||
|
||||
if (!$contact['remote_self']) {
|
||||
return false;
|
||||
}
|
||||
|
@ -2765,7 +2763,7 @@ class Item
|
|||
}
|
||||
|
||||
// Prevent to forward already forwarded posts
|
||||
if ($datarray["app"] == $a->getHostName()) {
|
||||
if ($datarray["app"] == DI::baseUrl()->getHostname()) {
|
||||
Logger::log('Already forwarded (second test)', Logger::DEBUG);
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue