]> git.mxchange.org Git - friendica.git/commitdiff
Check $item_profile is populated in ActivityPub\Transmitter
authorHypolite Petovan <hypolite@mrpetovan.com>
Fri, 8 May 2020 13:15:04 +0000 (09:15 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Fri, 8 May 2020 13:31:36 +0000 (09:31 -0400)
- Address https://github.com/friendica/friendica/issues/8475#issuecomment-625716446

src/Protocol/ActivityPub/Transmitter.php

index 0dfef3ebdeffcb2cceb01c6fb515a2119d78eb28..6e639fb9896eb900ac10d6efd601998a68f2c326 100644 (file)
@@ -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)) {