From 8211e6d887b7b37b86d5bcac7b20dcc01479ddbc Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 10 Mar 2021 14:40:57 +0000 Subject: [PATCH] Fixes notice: "Undefined index: type" --- src/Protocol/ActivityPub/Receiver.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Protocol/ActivityPub/Receiver.php b/src/Protocol/ActivityPub/Receiver.php index 519d91a66..62a583dc8 100644 --- a/src/Protocol/ActivityPub/Receiver.php +++ b/src/Protocol/ActivityPub/Receiver.php @@ -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;