X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fping.php;h=14639d76d2117d6ac3be3bf8df052baf37b0b05e;hb=ebc8e2a0e7dde135aef73be7b3d96dff155fe091;hp=4d370593cc246e0bb0f92f1b1478350a9001990a;hpb=7a9777df053a9007b5eaa71f5437584065b615a5;p=quix0rs-gnu-social.git diff --git a/lib/ping.php b/lib/ping.php index 4d370593cc..14639d76d2 100644 --- a/lib/ping.php +++ b/lib/ping.php @@ -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,