From: Brion Vibber Date: Tue, 9 Mar 2010 18:56:33 +0000 (-0800) Subject: OStatus: fix exception thrown on HTTP error during feed discovery X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=58192ad68758437a37d8af19d6676d35699ed070;p=quix0rs-gnu-social.git OStatus: fix exception thrown on HTTP error during feed discovery --- diff --git a/plugins/OStatus/lib/feeddiscovery.php b/plugins/OStatus/lib/feeddiscovery.php index 7afb71bdc1..ff76b229e7 100644 --- a/plugins/OStatus/lib/feeddiscovery.php +++ b/plugins/OStatus/lib/feeddiscovery.php @@ -129,7 +129,7 @@ class FeedDiscovery function initFromResponse($response) { if (!$response->isOk()) { - throw new FeedSubBadResponseException($response->getCode()); + throw new FeedSubBadResponseException($response->getStatus()); } $sourceurl = $response->getUrl();