Browse Source

Update Inbox, fixes #3313

Daniel Supernault 3 years ago
parent
commit
1c3e72c087
1 changed files with 3 additions and 0 deletions
  1. 3 0
      app/Util/ActivityPub/Inbox.php

+ 3 - 0
app/Util/ActivityPub/Inbox.php

@@ -591,6 +591,9 @@ class Inbox
 			DeleteRemoteProfilePipeline::dispatchNow($profile);
 			DeleteRemoteProfilePipeline::dispatchNow($profile);
 			return;
 			return;
 		} else {
 		} else {
+			if(!isset($obj['id'], $this->payload['object'], $this->payload['object']['id'])) {
+				return;
+			}
 			$type = $this->payload['object']['type'];
 			$type = $this->payload['object']['type'];
 			$typeCheck = in_array($type, ['Person', 'Tombstone', 'Story']);
 			$typeCheck = in_array($type, ['Person', 'Tombstone', 'Story']);
 			if(!Helpers::validateUrl($actor) || !Helpers::validateUrl($obj['id']) || !$typeCheck) {
 			if(!Helpers::validateUrl($actor) || !Helpers::validateUrl($obj['id']) || !$typeCheck) {