Skip to content

Commit

Permalink
Issue 2945: empty feed causes error in our error pages
Browse files Browse the repository at this point in the history
  • Loading branch information
CristinaRO committed Mar 4, 2012
1 parent 3068169 commit 79baa56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/tags/feed.atom.builder
@@ -1,6 +1,6 @@
atom_feed do |feed|
feed.title "AO3 works tagged '#{@tag.name}'"
feed.updated @works.first.created_at
feed.updated @works.first.created_at if @works.respond_to?(:first) && @works.first.present?

@works.each do |work|
unless work.unrevealed?
Expand Down

0 comments on commit 79baa56

Please sign in to comment.