]> git.openstreetmap.org Git - rails.git/commitdiff
Removes note's author from RSS
authorNenad Vujicic <nenadus@gmail.com>
Thu, 23 Jan 2025 15:31:20 +0000 (16:31 +0100)
committerNenad Vujicic <nenadus@gmail.com>
Tue, 4 Feb 2025 00:29:45 +0000 (01:29 +0100)
Removes writing note's author to note's RSS if author is missing or data-migration is done and note's author is deleted.

app/views/api/notes/_note.rss.builder

index fa70536f79227a5cdaa4a5954c6c5076022c6125..0bfdb385de41cafda4fbb1bfcb96f06b6bc13c92 100644 (file)
@@ -13,7 +13,7 @@ xml.item do
   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