From: Michael Date: Thu, 14 May 2020 04:53:56 +0000 (+0000) Subject: Fix a fatal error when an undo doesn't contain an object X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=079738a8b5b425e8ef055ac53319b692b2d39599;p=friendica.git Fix a fatal error when an undo doesn't contain an object --- 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); } }