]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/ActivityPub/Processor.php
We are now setting the corresponding worker id
[friendica.git] / src / Protocol / ActivityPub / Processor.php
index 7973f0c0aadb85e571b3240dc7bbe42c8aceb886..03c68eac002f6fc52d3f226a8a5e174d4079c1c4 100644 (file)
@@ -294,7 +294,8 @@ class Processor
                        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);
+                               $wid = Worker::add(PRIORITY_HIGH, 'FetchMissingActivity', $activity['reply-to-id'], $activity, '', Receiver::COMPLETION_AUTO);
+                               Queue::setWorkerId($activity, $wid);
                                return [];
                        }
                }