OStatus: sub/unsub notifications working again. Fixed up autodetection of feed info at profile setup time

This commit is contained in:
Brion Vibber
2010-02-19 16:21:17 -08:00
parent d69f6dff6a
commit 557df3d3f7
4 changed files with 35 additions and 14 deletions

View File

@@ -41,9 +41,12 @@ class Salmon
$client->setBody($xml);
$response = $client->post($endpoint_uri, $headers);
} catch (HTTP_Request2_Exception $e) {
common_log(LOG_ERR, "Salmon post to $endpoint_uri failed: " . $e->getMessage());
return false;
}
if ($response->getStatus() != 200) {
common_log(LOG_ERR, "Salmon at $endpoint_uri returned status " .
$response->getStatus() . ': ' . $response->getBody());
return false;
}