X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fping.php;h=14639d76d2117d6ac3be3bf8df052baf37b0b05e;hb=931753229328d0ebdf80b76b898a736c06dc70a4;hp=e1c7c748e280339524aecac58f47e6cd6a26ccb7;hpb=6e894c010fc0e7ddaaafa8795634d6343019aafb;p=quix0rs-gnu-social.git diff --git a/lib/ping.php b/lib/ping.php index e1c7c748e2..14639d76d2 100644 --- a/lib/ping.php +++ b/lib/ping.php @@ -24,7 +24,7 @@ function ping_broadcast_notice($notice) { return true; } - # Array of servers, URL => type + // Array of servers, URL => type $notify = common_config('ping', 'notify'); try { $profile = $notice->getProfile(); @@ -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,