From 28fb0224250b63d1330b0e96993a1533147c6ce2 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 21 Jul 2022 06:26:31 +0000 Subject: [PATCH] Reset the recursion depth at a different place --- src/Protocol/ActivityPub/Processor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 []; }