From: Michael Date: Thu, 21 Jul 2022 06:26:31 +0000 (+0000) Subject: Reset the recursion depth at a different place X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=28fb0224250b63d1330b0e96993a1533147c6ce2;p=friendica.git Reset the recursion depth at a different place --- diff --git a/src/Protocol/ActivityPub/Processor.php b/src/Protocol/ActivityPub/Processor.php index fe7a4c5967..7973f0c0aa 100644 --- a/src/Protocol/ActivityPub/Processor.php +++ b/src/Protocol/ActivityPub/Processor.php @@ -288,12 +288,12 @@ class Processor $fetch_by_worker = empty($result); } else { Logger::notice('Recursion level is too high.', ['parent' => $activity['reply-to-id'], 'recursion-depth' => $recursion_depth]); - $activity['recursion-depth'] = 0; $fetch_by_worker = true; } if ($fetch_by_worker) { Logger::notice('Fetching is done by worker.', ['parent' => $activity['reply-to-id'], 'recursion-depth' => $recursion_depth]); + $activity['recursion-depth'] = 0; Worker::add(PRIORITY_HIGH, 'FetchMissingActivity', $activity['reply-to-id'], $activity, '', Receiver::COMPLETION_AUTO); return []; }