mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 21:35:13 +00:00
Merge branch 'dev' into collect
This commit is contained in:
commit
f27cf184bc
1 changed files with 5 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue