From: Nenad Vujicic Date: Thu, 23 Jan 2025 15:31:20 +0000 (+0100) Subject: Removes note's author from RSS X-Git-Tag: live~55^2~1 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/575538656733cc6a65f8f76292bd8931254da2a2?hp=a16c1138e9c061f83accca1b433aeebaf882758f Removes note's author from RSS Removes writing note's author to note's RSS if author is missing or data-migration is done and note's author is deleted. --- diff --git a/app/views/api/notes/_note.rss.builder b/app/views/api/notes/_note.rss.builder index fa70536f7..0bfdb385d 100644 --- a/app/views/api/notes/_note.rss.builder +++ b/app/views/api/notes/_note.rss.builder @@ -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