Merge branch 'dev' into collect

This commit is contained in:
Mike Macgirvin 2024-01-31 09:17:40 +11:00
commit f27cf184bc

View file

@ -47,6 +47,11 @@ class Zotfinger
$x = Url::post($resource, $data, ['headers' => $h]);
if (get_request_string($resource) === '/') {
// don't recurse on the root actor/directory.
$recurse = false;
}
if (in_array(intval($x['return_code']), [ 404, 410 ]) && $recurse) {
// The resource has been deleted or doesn't exist at this location.