]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/notes/feed.rss.builder
Remove the author_name field from notes
[rails.git] / app / views / notes / feed.rss.builder
index 7113364f01fb2dffa59885529afdde8982267cc7..4733c1bad77864377814f32139676c1ab27175e9 100644 (file)
@@ -37,7 +37,11 @@ xml.rss("version" => "2.0",
         description_text += comment.note.flatten_comment("<br>", comment.created_at)
 
         xml.description description_text 
-        xml.author comment.author_name
+
+        if comment.author
+          xml.author comment.author.display_name
+        end
+
         xml.pubDate comment.created_at.to_s(:rfc822)
         xml.geo :lat, comment.note.lat
         xml.geo :long, comment.note.lon