From e2896b449b544e451d9a55f398b5990072cee644 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 10 Aug 2022 13:43:00 +0000 Subject: [PATCH] Changes after code review --- src/Protocol/ActivityPub/Processor.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Protocol/ActivityPub/Processor.php b/src/Protocol/ActivityPub/Processor.php index c029d1bc6e..76bab6b81c 100644 --- a/src/Protocol/ActivityPub/Processor.php +++ b/src/Protocol/ActivityPub/Processor.php @@ -535,17 +535,17 @@ class Processor Logger::notice('The activity is gone. We will not spawn a worker. The queue entry will be deleted', ['parent' => $activity['reply-to-id']]); if ($in_background) { // fetching in background is done for all activities where we have got the conversation - // There we only delete the single activity and not thr whole thread since we can store the + // There we only delete the single activity and not the whole thread since we can store the // other posts in the thread even with missing posts. Queue::remove($activity); } elseif (!empty($activity['entry-id'])) { Queue::deleteById($activity['entry-id']); } return ''; - } elseif (!$in_background) { - Logger::notice('Recursion level is too high.', ['parent' => $activity['reply-to-id'], 'recursion-depth' => $recursion_depth]); } elseif ($in_background) { Logger::notice('Fetching is done in the background.', ['parent' => $activity['reply-to-id']]); + } else { + Logger::notice('Recursion level is too high.', ['parent' => $activity['reply-to-id'], 'recursion-depth' => $recursion_depth]); } if (!Fetch::hasWorker($activity['reply-to-id'])) {