diff --git a/core/modules/history/lib/Drupal/history/Controller/HistoryController.php b/core/modules/history/lib/Drupal/history/Controller/HistoryController.php index 94a4213..4d10bd5 100644 --- a/core/modules/history/lib/Drupal/history/Controller/HistoryController.php +++ b/core/modules/history/lib/Drupal/history/Controller/HistoryController.php @@ -83,7 +83,7 @@ public function readNode(Request $request, NodeInterface $node) { } // Update the history table, stating that this user viewed this node. - $this->historyManager->updateLastViewed('node', $node->id()); + $this->historyManager->updateLastViewed($node); $history = $this->historyManager->getLastViewed('node', array($node->id())); return new JsonResponse($history[$node->id()]);