Reset the recursion depth at a different place
This commit is contained in:
parent
c775833117
commit
28fb022425
|
@ -288,12 +288,12 @@ class Processor
|
||||||
$fetch_by_worker = empty($result);
|
$fetch_by_worker = empty($result);
|
||||||
} else {
|
} else {
|
||||||
Logger::notice('Recursion level is too high.', ['parent' => $activity['reply-to-id'], 'recursion-depth' => $recursion_depth]);
|
Logger::notice('Recursion level is too high.', ['parent' => $activity['reply-to-id'], 'recursion-depth' => $recursion_depth]);
|
||||||
$activity['recursion-depth'] = 0;
|
|
||||||
$fetch_by_worker = true;
|
$fetch_by_worker = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($fetch_by_worker) {
|
if ($fetch_by_worker) {
|
||||||
Logger::notice('Fetching is done by worker.', ['parent' => $activity['reply-to-id'], 'recursion-depth' => $recursion_depth]);
|
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);
|
Worker::add(PRIORITY_HIGH, 'FetchMissingActivity', $activity['reply-to-id'], $activity, '', Receiver::COMPLETION_AUTO);
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user