]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/map_bugs/_bug.xml.builder
Always get the bug commenter name from the user if there is one
[rails.git] / app / views / map_bugs / _bug.xml.builder
index 69683b7ddad92cb92b7020f89c0c6c6d4370851b..a25a588a2460b2426455ea72883556fa7b99d5b2 100644 (file)
@@ -12,14 +12,8 @@ xml.bug("lon" => bug.lon, "lat" => bug.lat) do
     bug.map_bug_comment.each do |comment|
       xml.comment do
         xml.date comment.date_created
-
-        unless comment.commenter_id.nil?
-          xml.uid comment.commenter_id
-          xml.user comment.user.display_name   
-        else
-          xml.user comment.commenter_name
-        end
-
+        xml.uid comment.commenter_id unless comment.commenter_id.nil?
+        xml.user comment.commenter_name
         xml.text comment.comment
       end      
     end