]> git.openstreetmap.org Git - rails.git/blobdiff - lib/osm.rb
Adding a guid element to feed items, replicates URL.
[rails.git] / lib / osm.rb
index 57714c68ebdebd7db30e6e3cd5db649ec384a387..6d2ef9efdcfb06394df481aa29f5780442ebcde1 100644 (file)
@@ -290,18 +290,22 @@ module OSM
       link << url
       item << link
 
+      guid = XML::Node.new 'guid'
+      guid << url
+      item << guid
+
       description = XML::Node.new 'description'
       description << description_text
       item << description
 
       pubDate = XML::Node.new 'pubDate'
-      pubDate << timestamp.xmlschema
+      pubDate << timestamp.to_s(:rfc822)
       item << pubDate
 
       if latitude
         lat_el = XML::Node.new 'geo:lat'
         lat_el << latitude.to_s
-        item << lat_el if lat_el
+        item << lat_el
       end
 
       if longitude