diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-08-01 19:03:42 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-08-01 19:03:42 +0200 |
| commit | c2d48649f8c907e7716a714ddb1261144013d9be (patch) | |
| tree | af7f9485310ff6177a3fc12849e125f9b2407f21 /app/views/rss/updates.xml.builder | |
| parent | 45432cba9f524c99015c90b6b6aa381fe2b04984 (diff) | |
Derive the Atom feed timestamp from its entries
Diffstat (limited to 'app/views/rss/updates.xml.builder')
| -rw-r--r-- | app/views/rss/updates.xml.builder | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |||
| 4 | xml.title("Chaos Computer Club Updates") | 4 | xml.title("Chaos Computer Club Updates") |
| 5 | xml.link(:href => "https://www.ccc.de/") | 5 | xml.link(:href => "https://www.ccc.de/") |
| 6 | xml.link(:rel => "self", :href => "#{@host}/rss/updates.xml") | 6 | xml.link(:rel => "self", :href => "#{@host}/rss/updates.xml") |
| 7 | xml.updated((@items.first&.published_at || Time.now).xmlschema) | 7 | xml.updated((@items.map(&:updated_at).compact.max || Time.now).xmlschema) |
| 8 | xml.author do | 8 | xml.author do |
| 9 | xml.name("Chaos Computer Club e.V.") | 9 | xml.name("Chaos Computer Club e.V.") |
| 10 | end | 10 | end |
