Skip to content

Commit

Permalink
Removes note's author from RSS
Browse files Browse the repository at this point in the history
Removes writing note's author to note's RSS if author is missing or data-migration is done and note's author is deleted.
  • Loading branch information
nenad-vujicic committed Feb 3, 2025
1 parent f11a62a commit d88ddf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/api/notes/_note.rss.builder
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d88ddf0

Please sign in to comment.