From 1c3e72c0878487c5c34d893e5e280d2300099575 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 16 Mar 2022 21:32:10 -0600 Subject: [PATCH] Update Inbox, fixes #3313 --- app/Util/ActivityPub/Inbox.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Util/ActivityPub/Inbox.php b/app/Util/ActivityPub/Inbox.php index 0e116a303..9174c6d76 100644 --- a/app/Util/ActivityPub/Inbox.php +++ b/app/Util/ActivityPub/Inbox.php @@ -591,6 +591,9 @@ class Inbox DeleteRemoteProfilePipeline::dispatchNow($profile); return; } else { + if(!isset($obj['id'], $this->payload['object'], $this->payload['object']['id'])) { + return; + } $type = $this->payload['object']['type']; $typeCheck = in_array($type, ['Person', 'Tombstone', 'Story']); if(!Helpers::validateUrl($actor) || !Helpers::validateUrl($obj['id']) || !$typeCheck) {