diff options
Diffstat (limited to 'app/views/rss')
| -rw-r--r-- | app/views/rss/tag_updates.xml.builder | 2 | ||||
| -rw-r--r-- | app/views/rss/updates.xml.builder | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/rss/tag_updates.xml.builder b/app/views/rss/tag_updates.xml.builder index 6491cfc6..810ee9aa 100644 --- a/app/views/rss/tag_updates.xml.builder +++ b/app/views/rss/tag_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: #{@tag}") | 4 | xml.title("Chaos Computer Club: #{@tag}") |
| 5 | xml.link(:href => "#{@host}/") | 5 | xml.link(:href => "#{@host}/") |
| 6 | xml.link(:rel => "self", :href => "#{@host}/rss/tags/#{@tag}/updates.xml") | 6 | xml.link(:rel => "self", :href => "#{@host}/rss/tags/#{@tag}/updates.xml") |
| 7 | xml.updated(@items.first.published_at.xmlschema) unless @items.empty? | 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 |
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 |
