Use created at for RSS format with note#show
authorTom Hughes <tom@compton.nu>
Mon, 20 Feb 2017 08:50:56 +0000 (08:50 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 20 Feb 2017 08:50:56 +0000 (08:50 +0000)
This matches other formats and is also what the tests expect.

app/views/notes/_note.rss.builder

index 038ca56..38c42f1 100644 (file)
@@ -15,7 +15,7 @@ xml.item do
 
   xml.dc :creator, note.author.display_name if note.author
 
-  xml.pubDate note.updated_at.to_s(:rfc822)
+  xml.pubDate note.created_at.to_s(:rfc822)
   xml.geo :lat, note.lat
   xml.geo :long, note.lon
   xml.georss :point, "#{note.lat} #{note.lon}"