X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fsalmon.php;h=3d525f51ad36d0a2d55349937c140e404f8b56ea;hb=afa88154114d5632cb13e7c3f56143cccdfd7daa;hp=9153f8994ce9ccff52c4d546e41fb65795df7de0;hpb=d0926240a87327a7e38b822802ac192336f68791;p=friendica.git diff --git a/include/salmon.php b/include/salmon.php index 9153f8994c..3d525f51ad 100644 --- a/include/salmon.php +++ b/include/salmon.php @@ -187,6 +187,9 @@ EOT; logger('slapper returned ' . $return_code); if(! $return_code) return(-1); + if(($return_code == 503) && (stristr($a->get_curl_headers(),'retry-after'))) + return(-1); + return ((($return_code >= 200) && ($return_code < 300)) ? 0 : 1); }