From 688174e6c022dba5be6685bbd670481e888bd9c2 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 18 Oct 2018 12:25:57 +0000 Subject: [PATCH] AP: Fix "null" receiver --- src/Protocol/ActivityPub/Transmitter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Protocol/ActivityPub/Transmitter.php b/src/Protocol/ActivityPub/Transmitter.php index 9ddcc1d793..7f22e8386b 100644 --- a/src/Protocol/ActivityPub/Transmitter.php +++ b/src/Protocol/ActivityPub/Transmitter.php @@ -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']; } -- 2.39.5