X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b875d14b7cd13432b0683ca548b341dcd8bddf80..0be6dd860f1843681e6380fbe69ca71a6eb01ab7:/app/models/node.rb?ds=sidebyside diff --git a/app/models/node.rb b/app/models/node.rb index cf7aedae8..391b50dcd 100644 --- a/app/models/node.rb +++ b/app/models/node.rb @@ -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')