return user id AND name with changeset get request
authorFrederik Ramm <frederik@remote.org>
Sun, 9 Nov 2008 16:12:23 +0000 (16:12 +0000)
committerFrederik Ramm <frederik@remote.org>
Sun, 9 Nov 2008 16:12:23 +0000 (16:12 +0000)
app/models/changeset.rb

index 5938d0835f068850ea989657563866c948780a68..4a4d12124b69b786689d883073cd0a22e3b63b83 100644 (file)
@@ -145,6 +145,7 @@ class Changeset < ActiveRecord::Base
     end
 
     el1['user'] = user_display_name_cache[self.user_id] unless user_display_name_cache[self.user_id].nil?
+    el1['uid'] = self.user_id.to_s if self.user.data_public?
 
     self.tags.each do |k,v|
       el2 = XML::Node.new('tag')