]> git.mxchange.org Git - friendica.git/commitdiff
Fixes notice: "Undefined index: type"
authorMichael <heluecht@pirati.ca>
Wed, 10 Mar 2021 14:40:57 +0000 (14:40 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 10 Mar 2021 14:40:57 +0000 (14:40 +0000)
src/Protocol/ActivityPub/Receiver.php

index 519d91a660459f57881c0037fdbd9759c78acdb2..62a583dc8caa0769413ea0e37d3106b0fb999a13 100644 (file)
@@ -101,7 +101,8 @@ class Receiver
 
                $apcontact = APContact::getByURL($actor);
                if (empty($apcontact)) {
-                       Logger::notice('Unable to retrieve AP contact for actor', ['actor' => $actor]);
+                       Logger::notice('Unable to retrieve AP contact for actor - message is discarded', ['actor' => $actor]);
+                       return;
                } elseif ($apcontact['type'] == 'Application' && $apcontact['nick'] == 'relay') {
                        self::processRelayPost($ldactivity, $actor);
                        return;