]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/api/notes/_note.rss.builder
Removes note's author from RSS
[rails.git] / app / views / api / notes / _note.rss.builder
index a26f54aa8eebd971a87f7d4742a6b675d9b374c3..0bfdb385de41cafda4fbb1bfcb96f06b6bc13c92 100644 (file)
@@ -9,11 +9,11 @@ xml.item do
     xml.title t("api.notes.rss.opened", :place => location)
   end
 
-  xml.link browse_note_url(note)
+  xml.link note_url(note)
   xml.guid api_note_url(note)
   xml.description render(:partial => "description", :object => note, :formats => [:html])
 
-  xml.dc :creator, note.author.display_name if note.author
+  xml.dc :creator, note.author.display_name unless note.author.nil? || note.author.status == "deleted"
 
   xml.pubDate note.created_at.to_fs(:rfc822)
   xml.geo :lat, note.lat