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:
parent
692d57744f
commit
fa95768ae3
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue