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/helpers/content_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/helpers') diff --git a/app/helpers/content_helper.rb b/app/helpers/content_helper.rb index 57f8c960..9d52c110 100644 --- a/app/helpers/content_helper.rb +++ b/app/helpers/content_helper.rb @@ -123,7 +123,7 @@ module ContentHelper sanitize(content, :attributes => cccms_attributes) end - rescue + rescue => e Rails.logger.error("aggregate shortcode failed on page #{@page&.id}: #{e.class}: #{e.message}") fallback = content.sub(/\[aggregate[^\]]*\]/, "") fallback = sanitize(fallback, :attributes => cccms_attributes) -- cgit v1.3