X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c8971a545c7173274e3018de02ac2f6784b50734..b9d719cf6f8c7ce5268c866f94dacee763ffe51b:/app/models/old_node.rb diff --git a/app/models/old_node.rb b/app/models/old_node.rb index 9426b2d23..c2ec43c9c 100644 --- a/app/models/old_node.rb +++ b/app/models/old_node.rb @@ -52,8 +52,11 @@ class OldNode < ActiveRecord::Base el2['v'] = v.to_s el1 << el2 end - el1['lat'] = self.lat.to_s - el1['lon'] = self.lon.to_s + + if self.visible? + el1['lat'] = self.lat.to_s + el1['lon'] = self.lon.to_s + end el1['changeset'] = self.changeset.id.to_s if self.changeset.user.data_public?