From: Tom Hughes Date: Fri, 24 May 2013 08:12:25 +0000 (+0100) Subject: Use dc:creator instead of author for the author's name X-Git-Tag: live~5011 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/fa95768ae3a4d57c779da81be9b9a905a4fbc39b?ds=sidebyside 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. --- 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)