@@ -21,7 +21,7 xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do | |||
|
21 | 21 | author = item.event_author if item.respond_to?(:event_author) |
|
22 | 22 | xml.author do |
|
23 | 23 | xml.name(author) |
|
24 |
xml.email(author.mail) if author. |
|
|
24 | xml.email(author.mail) if author.is_a?(User) && !author.mail.blank? && !author.pref.hide_mail | |
|
25 | 25 | end if author |
|
26 | 26 | xml.content "type" => "html" do |
|
27 | 27 | xml.text! textilizable(item.event_description) |
@@ -15,7 +15,7 xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do | |||
|
15 | 15 | xml.updated change.created_on.xmlschema |
|
16 | 16 | xml.author do |
|
17 | 17 | xml.name change.user.name |
|
18 | xml.email(change.user.mail) | |
|
18 | xml.email(change.user.mail) if change.user.is_a?(User) && !change.user.mail.blank? && !change.user.pref.hide_mail | |
|
19 | 19 | end |
|
20 | 20 | xml.content "type" => "html" do |
|
21 | 21 | xml.text! '<ul>' |
General Comments 0
You need to be logged in to leave comments.
Login now