]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/PubSubPublish.php
Fixings
[friendica.git] / src / Worker / PubSubPublish.php
index 1fb19693104e6f423a5352b01c0ec2268824ab64..8e38ff8128b633e6c9cac1d21215722b79eef069 100644 (file)
@@ -5,10 +5,9 @@
 
 namespace Friendica\Worker;
 
-use Friendica\BaseObject;
 use Friendica\Core\Logger;
-use Friendica\Core\System;
 use Friendica\Database\DBA;
+use Friendica\DI;
 use Friendica\Model\PushSubscriber;
 use Friendica\Protocol\OStatus;
 use Friendica\Util\Network;
@@ -31,7 +30,7 @@ class PubSubPublish
                        return;
                }
 
-               /// @todo Check server status with PortableContact::checkServer()
+               /// @todo Check server status with GServer::check()
                // Before this can be done we need a way to safely detect the server url.
 
                Logger::log("Generate feed of user " . $subscriber['nickname']. " to " . $subscriber['callback_url']. " - last updated " . $subscriber['last_update'], Logger::DEBUG);
@@ -47,7 +46,7 @@ class PubSubPublish
 
                $headers = ["Content-type: application/atom+xml",
                                sprintf("Link: <%s>;rel=hub,<%s>;rel=self",
-                                       System::baseUrl() . '/pubsubhubbub/' . $subscriber['nickname'],
+                                       DI::baseUrl() . '/pubsubhubbub/' . $subscriber['nickname'],
                                        $subscriber['topic']),
                                "X-Hub-Signature: sha1=" . $hmac_sig];