]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/map_bugs/rss.rss.builder
Simplify URL scheme name matching in OAuth callback URLs a little
[rails.git] / app / views / map_bugs / rss.rss.builder
index f5b597dd7699a51ae52d45548f2f2a78b6cdec42..566a3b322c48d6651d300888e874496c8f718261 100644 (file)
@@ -27,22 +27,16 @@ xml.rss("version" => "2.0",
 
         if comment.event == "commented" and not comment.nil?
           description_text += "<b>Comment:</b><br>"
-          description_text += htmlize(comment.comment)
+          description_text += htmlize(comment.body)
           description_text += "<br>"
         end
 
         description_text += "<b>Full bug report:</b><br>"
-        description_text += comment.map_bug.flatten_comment("<br>", comment.date_created)
+        description_text += comment.map_bug.flatten_comment("<br>", comment.created_at)
 
         xml.description description_text 
-
-        if comment.user.nil?
-          xml.author comment.commenter_name
-        else
-          xml.author comment.user.display_name
-        end
-               
-        xml.pubDate comment.date_created.to_s(:rfc822)
+        xml.author comment.author_name
+        xml.pubDate comment.created_at.to_s(:rfc822)
         xml.geo :lat, comment.map_bug.lat
         xml.geo :long, comment.map_bug.lon
         xml.georss :point, "#{comment.map_bug.lat} #{comment.map_bug.lon}"