]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/OStatus/lib/feeddiscovery.php
OStatus: fix exception thrown on HTTP error during feed discovery
[quix0rs-gnu-social.git] / plugins / OStatus / lib / feeddiscovery.php
index 7afb71bdc16044ad8ec763e64f2b2d442df5a0ae..ff76b229e76923030f0d56242bb4467024b93dbf 100644 (file)
@@ -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();