diff --git a/src/Module/Objects.php b/src/Module/Objects.php index 264f3dbd64..cce2b73131 100644 --- a/src/Module/Objects.php +++ b/src/Module/Objects.php @@ -63,7 +63,7 @@ class Objects extends BaseModule $activity['type'] = $activity['type'] == 'Update' ? 'Create' : $activity['type']; // Only display "Create" activity objects here, no reshares or anything else - if (!is_array($activity['object']) || ($activity['type'] != 'Create')) { + if (empty($activity['object']) || ($activity['type'] != 'Create')) { throw new \Friendica\Network\HTTPException\NotFoundException(); }