Project

General

Profile

Patch #1528 » atom_author_in_content.patch

Show author's username. - Reavis Sutphin-Gray, 2008-06-25 04:53

View differences:

app/views/common/feed.atom.rxml (working copy)
20 20
        xml.email(author.mail) if author.respond_to?(:mail) && !author.mail.blank?
21 21
      end if author
22 22
      xml.content "type" => "html" do
23
        xml.text! textilizable(item.event_description)
23
        xml.text! author + textilizable(item.event_description) if author.is_a?(String)
24
        xml.text! author.name(:username) + textilizable(item.event_description) if author.is_a?(User)
24 25
      end
25 26
    end
26 27
  end
(3-3/3)