Merge pull request #5954 from annando/fix-null-receiver

AP: Fix "null" receiver
This commit is contained in:
Hypolite Petovan 2018-10-18 10:05:05 -04:00 committed by GitHub
commit a1919992b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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'];
}