]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/ping.php
Re added NICKNAME_FMT constant to router.php.
[quix0rs-gnu-social.git] / lib / ping.php
index 2797c1b2d23d823b7ae636bfdd3a03cdbdaa98c4..5698c403875e52b584b80a5fd5f86d8b93a4699f 100644 (file)
@@ -44,10 +44,8 @@ function ping_broadcast_notice($notice) {
                                                                                                                                array('nickname' => $profile->nickname)),
                                                                                           $tags));
 
-            $request = new HTTPClient($notify_url, HTTP_Request2::METHOD_POST);
-            $request->setHeader('Content-Type', 'text/xml');
-            $request->setBody($req);
-            $httpResponse = $request->send();
+            $request = HTTPClient::start();
+            $httpResponse = $request->post($notify_url, array('Content-Type: text/xml'), $req);
 
             if (!$httpResponse || mb_strlen($httpResponse->getBody()) == 0) {
                 common_log(LOG_WARNING,