]> git.mxchange.org Git - friendica.git/commitdiff
Process the replies
authorMichael <heluecht@pirati.ca>
Thu, 21 Jul 2022 07:08:17 +0000 (07:08 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 21 Jul 2022 07:08:17 +0000 (07:08 +0000)
src/Worker/FetchMissingActivity.php

index ceab8b7338430d4a9361be13b8c0cd348049f16b..116f098db02e9519bbef8e7a1c5831efb68fb9c2 100644 (file)
@@ -24,6 +24,7 @@ namespace Friendica\Worker;
 use Friendica\Core\Logger;
 use Friendica\Core\Worker;
 use Friendica\Protocol\ActivityPub;
+use Friendica\Protocol\ActivityPub\Queue;
 use Friendica\Protocol\ActivityPub\Receiver;
 
 class FetchMissingActivity
@@ -38,6 +39,7 @@ class FetchMissingActivity
                $result = ActivityPub\Processor::fetchMissingActivity($url, $child, $relay_actor, $completion);
                if ($result) {
                        Logger::info('Successfully fetched missing activity', ['url' => $url]);
+                       Queue::processReplyByUri($url);
                } elseif (!Worker::defer()) {
                        Logger::info('Activity could not be fetched', ['url' => $url]);
                        // Possibly we should recursively remove child activities at this point.