mirror of
https://github.com/friendica/friendica
synced 2025-04-22 12:30:12 +00:00
Prevent endless loops and long running feed processing
This commit is contained in:
parent
7bc4427c09
commit
bc069c8ebf
4 changed files with 16 additions and 4 deletions
|
@ -884,11 +884,11 @@ class GContact
|
|||
$items = $outbox['orderedItems'];
|
||||
} elseif (!empty($outbox['first']['orderedItems'])) {
|
||||
$items = $outbox['first']['orderedItems'];
|
||||
} elseif (!empty($outbox['first']['href'])) {
|
||||
} elseif (!empty($outbox['first']['href']) && ($outbox['first']['href'] != $feed)) {
|
||||
self::updateFromOutbox($outbox['first']['href'], $data);
|
||||
return;
|
||||
} elseif (!empty($outbox['first'])) {
|
||||
if (is_string($outbox['first'])) {
|
||||
if (is_string($outbox['first']) && ($outbox['first'] != $feed)) {
|
||||
self::updateFromOutbox($outbox['first'], $data);
|
||||
} else {
|
||||
Logger::warning('Unexpected data', ['outbox' => $outbox]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue