]> git.openstreetmap.org Git - rails.git/commitdiff
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 038ca564b36ba989ffa35e730bf1f279b6801b5a..38c42f1ec4786de0dba3fd82469903ec8d88fca0 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}"