Use the right author name for bugs in RSS format

This commit is contained in:
Tom Hughes 2011-05-08 18:01:59 +01:00
parent f77a3c75be
commit ae844f3260

View file

@ -10,11 +10,7 @@ xml.item do
xml.link url_for(:controller => "browse", :action => "bug", :id => bug.id, :only_path => false) xml.link url_for(:controller => "browse", :action => "bug", :id => bug.id, :only_path => false)
xml.guid url_for(:controller => "map_bugs", :action => "read", :id => bug.id, :only_path => false) xml.guid url_for(:controller => "map_bugs", :action => "read", :id => bug.id, :only_path => false)
xml.description htmlize(bug.flatten_comment("<br><br>")) xml.description htmlize(bug.flatten_comment("<br><br>"))
xml.author bug.author_name
unless bug.comments.empty?
xml.author bug.comments[-1].author_name
end
xml.pubDate bug.updated_at.to_s(:rfc822) xml.pubDate bug.updated_at.to_s(:rfc822)
xml.geo :lat, bug.lat xml.geo :lat, bug.lat
xml.geo :long, bug.lon xml.geo :long, bug.lon