2c2 < index 9b47b7c..435bae5 100644 --- > index 9b47b7c..44b2c78 100644 5c5 < @@ -148,18 +148,18 @@ public function buildComponents(array &$build, array $entities, array $displays, --- > @@ -148,18 +148,23 @@ public function buildComponents(array &$build, array $entities, array $displays, 22,26c22,31 < + // Embed the metadata for the comment "new" indicators on this node. < + $build['history'] = [ < + '#lazy_builder' => ['history_attach_timestamp', [$commented_entity->id()]], < + '#create_placeholder' => TRUE, < + ]; --- > + if ($this->moduleHandler->moduleExists('history') && $this->currentUser->isAuthenticated()) { > + // Embed the metadata for the comment "new" indicators on this node. > + $build['history'] = [ > + '#lazy_builder' => [ > + 'history_attach_timestamp', > + [$commented_entity->id()] > + ], > + '#create_placeholder' => TRUE, > + ]; > + }