Fix using wrong uid for APDelivery in Worker\Notifier

This commit is contained in:
Hypolite Petovan 2019-01-22 01:30:03 -05:00
parent 604262a70e
commit 282bc01994

View File

@ -587,7 +587,7 @@ class Notifier
Logger::log('Deliver ' . $target_item['id'] .' to ' . $inbox .' via ActivityPub', Logger::DEBUG);
Worker::add(['priority' => $priority, 'created' => $created, 'dont_fork' => true],
'APDelivery', $cmd, $target_item['id'], $inbox, $target_item['contact-uid']);
'APDelivery', $cmd, $target_item['id'], $inbox, $target_item['contact-uid'] ?: $target_item['uid']);
}
return count($inboxes);