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.
This commit is contained in:
parent
a16c1138e9
commit
5755386567
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue