From: Hypolite Petovan Date: Fri, 8 May 2020 13:15:04 +0000 (-0400) Subject: Check $item_profile is populated in ActivityPub\Transmitter X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=55acb511480d10353f1dd1fdc4c3b9e2541bcbb6;p=friendica.git Check $item_profile is populated in ActivityPub\Transmitter - Address https://github.com/friendica/friendica/issues/8475#issuecomment-625716446 --- diff --git a/src/Protocol/ActivityPub/Transmitter.php b/src/Protocol/ActivityPub/Transmitter.php index 0dfef3ebde..6e639fb989 100644 --- a/src/Protocol/ActivityPub/Transmitter.php +++ b/src/Protocol/ActivityPub/Transmitter.php @@ -639,7 +639,7 @@ class Transmitter continue; } - if ($receiver == $item_profile['followers']) { + if ($item_profile && $receiver == $item_profile['followers']) { $inboxes = array_merge($inboxes, self::fetchTargetInboxesforUser($uid, $personal)); } else { if (Contact::isLocal($receiver)) {