From d88ddf0516e5022ef310171927158058be57b578 Mon Sep 17 00:00:00 2001 From: Nenad Vujicic Date: Thu, 23 Jan 2025 16:31:20 +0100 Subject: [PATCH] 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. --- app/views/api/notes/_note.rss.builder | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/api/notes/_note.rss.builder b/app/views/api/notes/_note.rss.builder index fa70536f79..1a4958e8b1 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.user_id.nil? && note.user_ip.nil?) && note.author.status == "deleted") xml.pubDate note.created_at.to_fs(:rfc822) xml.geo :lat, note.lat