]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Allow 201 as well, because spec says so
authorStephen Paul Weber <singpolyma@singpolyma.net>
Fri, 10 Jun 2016 21:13:10 +0000 (21:13 +0000)
committerStephen Paul Weber <singpolyma@singpolyma.net>
Fri, 10 Jun 2016 21:13:10 +0000 (21:13 +0000)
plugins/Linkback/LinkbackPlugin.php

index da7174bdc6733c16c197233b7524836f2f1325e8..10006fa030c6b29c058114e27d91dd51034cbe5f 100644 (file)
@@ -209,7 +209,7 @@ class LinkbackPlugin extends Plugin
                 $payload
             );
 
-            if(!in_array($response->getStatus(), array(200,202))) {
+            if(!in_array($response->getStatus(), array(200,201,202))) {
                 common_log(LOG_WARNING,
                            "Webmention request failed for '$url' ($endpoint)");
             }