]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/notes/_note.rss.builder
Add a reopen API call for notes
[rails.git] / app / views / notes / _note.rss.builder
index cffc3f271c2d75ddde6adaf070aebdffae15825c..a1ed7d3784ed4a1e9b2394c79f60ccf4b58ad59e 100644 (file)
@@ -12,7 +12,11 @@ xml.item do
   xml.link browse_note_url(note)
   xml.guid note_url(note)
   xml.description render(:partial => "description", :object => note, :formats => [ :html ])
-  xml.author note.comments.first.author_name
+
+  if note.author
+    xml.author note.author.display_name
+  end
+
   xml.pubDate note.updated_at.to_s(:rfc822)
   xml.geo :lat, note.lat
   xml.geo :long, note.lon