]> git.openstreetmap.org Git - rails.git/commitdiff
Use dc:creator for diary entry RSS
authorAndy Allan <git@gravitystorm.co.uk>
Sat, 29 Oct 2016 15:10:21 +0000 (17:10 +0200)
committerAndy Allan <git@gravitystorm.co.uk>
Sat, 29 Oct 2016 15:10:24 +0000 (17:10 +0200)
The author tag is reserved for email addresses, and we already use
dc:creator in other feeds.

app/views/diary_entry/rss.rss.builder

index 23db5984e836490208101039537a214b101ac850..6ccd214382eaeac46a3a95cebd6670f009bb5243 100644 (file)
@@ -21,7 +21,7 @@ xml.rss("version" => "2.0",
         xml.link url_for(:action => "view", :id => entry.id, :display_name => entry.user.display_name, :host => SERVER_URL)
         xml.guid url_for(:action => "view", :id => entry.id, :display_name => entry.user.display_name, :host => SERVER_URL)
         xml.description entry.body.to_html
-        xml.author entry.user.display_name
+        xml.dc :creator, entry.user.display_name
         xml.pubDate entry.created_at.to_s(:rfc822)
         xml.comments url_for(:action => "view", :id => entry.id, :display_name => entry.user.display_name, :anchor => "comments", :host => SERVER_URL)