Merge pull request #8632 from annando/fix-fatal

Fix a fatal error when an undo doesn't contain an object
This commit is contained in:
Hypolite Petovan 2020-05-14 09:06:42 -04:00 committed by GitHub
commit f58d42e317
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}