]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/Notifier.php
Adapt BaseURL calls to new UriInterface
[friendica.git] / src / Worker / Notifier.php
index e4189c2c75c4b2fb12e1c09c8d2a8ff466c734f9..93c6c180ab125b339a7328db8d227cb1177960ee 100644 (file)
@@ -212,7 +212,7 @@ class Notifier
                        // if $parent['wall'] == 1 we will already have the parent message in our array
                        // and we will relay the whole lot.
 
-                       $localhost = str_replace('www.','', DI::baseUrl()->getHostname());
+                       $localhost = str_replace('www.','', DI::baseUrl()->getHost());
                        if (strpos($localhost,':')) {
                                $localhost = substr($localhost,0,strpos($localhost,':'));
                        }