]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/node.rb
Ooops, forgot to commit the routes for the changeset query and include calls.
[rails.git] / app / models / node.rb
index cf7aedae88c77692519022e11804678383a0bf6c..391b50dcda335b4cb7ddb1e54cce2ccad1775b51 100644 (file)
@@ -222,7 +222,10 @@ class Node < ActiveRecord::Base
       user_display_name_cache[self.changeset.user_id] = nil
     end
 
-    el1['user'] = user_display_name_cache[self.changeset.user_id] unless user_display_name_cache[self.changeset.user_id].nil?
+    if not user_display_name_cache[self.changeset.user_id].nil?
+      el1['user'] = user_display_name_cache[self.changeset.user_id]
+      el1['uid'] = self.changeset.user_id.to_s
+    end
 
     self.tags.each do |k,v|
       el2 = XML::Node.new('tag')