From c2d48649f8c907e7716a714ddb1261144013d9be Mon Sep 17 00:00:00 2001 From: erdgeist Date: Sat, 1 Aug 2026 19:03:42 +0200 Subject: Derive the Atom feed timestamp from its entries --- app/views/rss/updates.xml.builder | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/views/rss/updates.xml.builder') diff --git a/app/views/rss/updates.xml.builder b/app/views/rss/updates.xml.builder index f261de89..a2c277d6 100644 --- a/app/views/rss/updates.xml.builder +++ b/app/views/rss/updates.xml.builder @@ -4,7 +4,7 @@ xml.feed(:xmlns => "http://www.w3.org/2005/Atom", "xml:base" => @host) do xml.title("Chaos Computer Club Updates") xml.link(:href => "https://www.ccc.de/") xml.link(:rel => "self", :href => "#{@host}/rss/updates.xml") - xml.updated((@items.first&.published_at || Time.now).xmlschema) + xml.updated((@items.map(&:updated_at).compact.max || Time.now).xmlschema) xml.author do xml.name("Chaos Computer Club e.V.") end -- cgit v1.3