From f829df23a034237775eb2048ebee861e3e969cca Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 29 Apr 2020 15:56:21 -0600 Subject: [PATCH] Update Inbox --- 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 802c1e5cb..448f86d5e 100644 --- a/app/Util/ActivityPub/Inbox.php +++ b/app/Util/ActivityPub/Inbox.php @@ -300,6 +300,9 @@ class Inbox } $actor = $this->payload['actor']; $obj = $this->payload['object']; + if(is_string($obj) == true) { + return; + } $type = $this->payload['object']['type']; $typeCheck = in_array($type, ['Person', 'Tombstone']); if(!Helpers::validateUrl($actor) || !Helpers::validateUrl($obj['id']) || !$typeCheck) {