From 079738a8b5b425e8ef055ac53319b692b2d39599 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 14 May 2020 04:53:56 +0000 Subject: [PATCH] Fix a fatal error when an undo doesn't contain an object --- src/Protocol/ActivityPub/Receiver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Protocol/ActivityPub/Receiver.php b/src/Protocol/ActivityPub/Receiver.php index 384f5b5952..603d06fb8a 100644 --- a/src/Protocol/ActivityPub/Receiver.php +++ b/src/Protocol/ActivityPub/Receiver.php @@ -274,7 +274,7 @@ class Receiver $object_data['object_type'] = JsonLD::fetchElement($activity['as:object'], '@type'); // An Undo is done on the object of an object, so we need that type as well - if ($type == 'as:Undo') { + if (($type == 'as:Undo') && !empty($object_data['object_object'])) { $object_data['object_object_type'] = self::fetchObjectType([], $object_data['object_object'], $uid); } }