Atom feeds:
* prevent duplicate entry ids for issue changes * prevent empty email in author element git-svn-id: http://redmine.rubyforge.org/svn/trunk@1154 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -15,8 +15,8 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
|
||||
xml.updated item.event_datetime.xmlschema
|
||||
author = item.event_author if item.respond_to?(:author)
|
||||
xml.author do
|
||||
xml.name(author.is_a?(User) ? author.name : author)
|
||||
xml.email(author.mail) if author.is_a?(User)
|
||||
xml.name(author)
|
||||
xml.email(author.mail) if author.respond_to?(:mail) && !author.mail.blank?
|
||||
end if author
|
||||
xml.content "type" => "html" do
|
||||
xml.text! textilizable(item.event_description)
|
||||
|
||||
Reference in New Issue
Block a user