From fa95768ae3a4d57c779da81be9b9a905a4fbc39b Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 24 May 2013 09:12:25 +0100 Subject: [PATCH] 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. --- app/views/notes/feed.rss.builder | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/notes/feed.rss.builder b/app/views/notes/feed.rss.builder index 26378a514..06c5b9866 100644 --- a/app/views/notes/feed.rss.builder +++ b/app/views/notes/feed.rss.builder @@ -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) -- 2.43.2