Use dc:creator instead of author for the author's name

Unfortunately the braindead RSS speciifcation requires author to
be an email address, so we have to use Dublin Core metadata to
report the author name instead.
This commit is contained in:
Tom Hughes 2013-05-24 09:12:25 +01:00
parent 692d57744f
commit fa95768ae3

View file

@ -1,6 +1,7 @@
xml.instruct!
xml.rss("version" => "2.0",
"xmlns:dc" => "http://purl.org/dc/elements/1.1/",
"xmlns:geo" => "http://www.w3.org/2003/01/geo/wgs84_pos#",
"xmlns:georss" => "http://www.georss.org/georss") do
xml.channel do
@ -30,7 +31,7 @@ xml.rss("version" => "2.0",
end
if comment.author
xml.author comment.author.display_name
xml.dc :creator, comment.author.display_name
end
xml.pubDate comment.created_at.to_s(:rfc822)