From 4928e871fb8f6be0dd0d24d6c8d416de7e5efb8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anke=20H=C3=A4slich?= Date: Tue, 2 May 2023 17:03:50 +0200 Subject: [PATCH] BUGFIX: Use `created` timestamp as fallback for `lastModificationDateTime` in sitemap.xml --- Classes/Fusion/XmlSitemapUrlsImplementation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Fusion/XmlSitemapUrlsImplementation.php b/Classes/Fusion/XmlSitemapUrlsImplementation.php index 4dfc061..57170cf 100644 --- a/Classes/Fusion/XmlSitemapUrlsImplementation.php +++ b/Classes/Fusion/XmlSitemapUrlsImplementation.php @@ -158,7 +158,7 @@ protected function collectItems(array &$items, Subtree $subtree): void if ($this->isDocumentNodeToBeIndexed($node)) { $item = [ 'node' => $node, - 'lastModificationDateTime' => $node->timestamps->lastModified, + 'lastModificationDateTime' => $node->timestamps->lastModified ?: $node->timestamps->created, 'priority' => $node->getProperty('xmlSitemapPriority') ?: '', 'images' => [], ];