Check $item_profile is populated in ActivityPub\Transmitter

- Address https://github.com/friendica/friendica/issues/8475#issuecomment-625716446
This commit is contained in:
Hypolite Petovan 2020-05-08 09:15:04 -04:00
parent 8a4b830552
commit 55acb51148

View file

@ -639,7 +639,7 @@ class Transmitter
continue; continue;
} }
if ($receiver == $item_profile['followers']) { if ($item_profile && $receiver == $item_profile['followers']) {
$inboxes = array_merge($inboxes, self::fetchTargetInboxesforUser($uid, $personal)); $inboxes = array_merge($inboxes, self::fetchTargetInboxesforUser($uid, $personal));
} else { } else {
if (Contact::isLocal($receiver)) { if (Contact::isLocal($receiver)) {