]> git.mxchange.org Git - friendica.git/commitdiff
Remove reference to receivers when adding relay delivery tasks in Worker\Notifier
authorHypolite Petovan <hypolite@mrpetovan.com>
Tue, 15 Dec 2020 20:42:16 +0000 (15:42 -0500)
committerGitHub <noreply@github.com>
Tue, 15 Dec 2020 20:42:16 +0000 (15:42 -0500)
- Address https://github.com/friendica/friendica/pull/9661#issuecomment-745553051

src/Worker/Notifier.php

index 3a1f00749d11be7d15c1c3e936dedc31684b4db4..907037dce9a9608c7ec8fd33999bcda66270b526 100644 (file)
@@ -834,10 +834,10 @@ class Notifier
                }
 
                // We deliver posts to relay servers slightly delayed to priorize the direct delivery
-               foreach ($relay_inboxes as $inbox => $receivers) {
+               foreach ($relay_inboxes as $inbox) {
                        Logger::info('Delivery to relay servers via ActivityPub', ['cmd' => $cmd, 'id' => $target_item['id'], 'inbox' => $inbox]);
 
-                       if (Worker::add(['priority' => $priority, 'dont_fork' => true], 'APDelivery', $cmd, $target_item['id'], $inbox, $uid, $receivers)) {
+                       if (Worker::add(['priority' => $priority, 'dont_fork' => true], 'APDelivery', $cmd, $target_item['id'], $inbox, $uid)) {
                                $delivery_queue_count++;
                        }
                }