AP: Fix "null" receiver
This commit is contained in:
parent
e2f005f68c
commit
688174e6c0
1 changed files with 1 additions and 1 deletions
|
@ -355,7 +355,7 @@ class Transmitter
|
||||||
|
|
||||||
foreach ($receiver_list as $receiver) {
|
foreach ($receiver_list as $receiver) {
|
||||||
$contact = DBA::selectFirst('contact', ['url'], ['id' => $receiver, 'network' => Protocol::ACTIVITYPUB]);
|
$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'];
|
$data['cc'][] = $contact['url'];
|
||||||
$contacts[$contact['url']] = $contact['url'];
|
$contacts[$contact['url']] = $contact['url'];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue