Reset the recursion depth at a different place

pull/11759/head
Michael 2022-07-21 06:26:31 +00:00
parent c775833117
commit 28fb022425
1 changed files with 1 additions and 1 deletions

View File

@ -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 [];
}