]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/ping.php
Misses this file to merge. I like the comments.
[quix0rs-gnu-social.git] / lib / ping.php
index 4d370593cc246e0bb0f92f1b1478350a9001990a..14639d76d2117d6ac3be3bf8df052baf37b0b05e 100644 (file)
@@ -90,11 +90,11 @@ function ping_broadcast_notice($notice) {
 
             if ($type === 'get') {
                 $result = $fetcher->get($notify_url . '?' . http_build_query($args),
-                                        array('User-Agent: StatusNet/'.STATUSNET_VERSION));
+                                        array('User-Agent: ' . HTTPClient::userAgent()));
             } else {
                 $result = $fetcher->post($notify_url,
                                          http_build_query($args),
-                                         array('User-Agent: StatusNet/'.STATUSNET_VERSION));
+                                         array('User-Agent: ' . HTTPClient::userAgent()));
             }
             if ($result->status != '200') {
                 common_log(LOG_WARNING,