User agents and generators changed to GNU social

This commit is contained in:
Mikael Nordfeldth
2013-11-01 13:28:52 +01:00
parent ca66860a4f
commit 255943d78f
8 changed files with 23 additions and 19 deletions

View 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,