Remove reference to receivers when adding relay delivery tasks in Worker\Notifier

- Address https://github.com/friendica/friendica/pull/9661#issuecomment-745553051
This commit is contained in:
Hypolite Petovan 2020-12-15 15:42:16 -05:00 committed by GitHub
parent 5f148dcb42
commit a2f14efd94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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++;
}
}