From 683526b38442a9873d83a542b5cba1d15efc14d5 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Fri, 31 Jul 2026 18:55:35 +0200 Subject: Bind aggregates over scoped tags to their subtree CccConventions::TAG_SCOPES maps "update" and "pressemitteilung" to /updates and "disclosure" to /disclosure. Page.aggregate applies the mapping, so an aggregate over one of those tags is bounded by its subtree regardless of what the shortcode says. Tags stay unrestricted; positions are publish-gated. Both RSS actions call Page.aggregate rather than repeating its tag join. Empty feeds no longer crash: Atom falls back to the current time for the required , and the optional dc:date is omitted. --- app/views/rss/updates.rdf.builder | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/views/rss/updates.rdf.builder') diff --git a/app/views/rss/updates.rdf.builder b/app/views/rss/updates.rdf.builder index b02d34ff..b4fecdb0 100644 --- a/app/views/rss/updates.rdf.builder +++ b/app/views/rss/updates.rdf.builder @@ -6,7 +6,7 @@ xml.tag!("rdf:RDF", "xmlns:rdf" => "http://www.w3.org/1999/02/22-rdf-syntax-ns#" xml.title("Chaos Computer Club: Updates") xml.link("https://www.ccc.de") xml.description("Kabelsalat ist gesund.") - xml.tag!("dc:date", @items.first.published_at.xmlschema) + xml.tag!("dc:date", @items.first&.published_at&.xmlschema) if @items.any? end xml.image( "rdf:about" => "https://www.ccc.de/images/chaosknoten.gif") do -- cgit v1.3