AP: Fix "null" receiver

This commit is contained in:
Michael 2018-10-18 12:25:57 +00:00
parent e2f005f68c
commit 688174e6c0

View file

@ -355,7 +355,7 @@ class Transmitter
foreach ($receiver_list as $receiver) {
$contact = DBA::selectFirst('contact', ['url'], ['id' => $receiver, 'network' => Protocol::ACTIVITYPUB]);
if (empty($contacts[$contact['url']])) {
if (DBA::isResult($contact) && empty($contacts[$contact['url']])) {
$data['cc'][] = $contact['url'];
$contacts[$contact['url']] = $contact['url'];
}