]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/old_relation.rb
Ooops, forgot to commit the routes for the changeset query and include calls.
[rails.git] / app / models / old_relation.rb
index b7e7248d9bab19b246df2d97f5151d2ed90a7415..491b444a677844f4c9d9db24874abac672226c6a 100644 (file)
@@ -99,7 +99,10 @@ class OldRelation < ActiveRecord::Base
     el1['id'] = self.id.to_s
     el1['visible'] = self.visible.to_s
     el1['timestamp'] = self.timestamp.xmlschema
     el1['id'] = self.id.to_s
     el1['visible'] = self.visible.to_s
     el1['timestamp'] = self.timestamp.xmlschema
-    el1['user'] = self.changeset.user.display_name if self.changeset.user.data_public?
+    if self.changeset.user.data_public?
+      el1['user'] = self.changeset.user.display_name
+      el1['uid'] = self.changeset.user.id.to_s
+    end
     el1['version'] = self.version.to_s
     el1['changeset'] = self.changeset_id.to_s
     
     el1['version'] = self.version.to_s
     el1['changeset'] = self.changeset_id.to_s