Merge pull request #5954 from annando/fix-null-receiver
AP: Fix "null" receiver
This commit is contained in:
commit
a1919992b9
1 changed files with 1 additions and 1 deletions
|
@ -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'];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue