]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/old_node.rb
Update list of filtered methods in notes controller
[rails.git] / app / models / old_node.rb
index 9426b2d2327331e5e5ab7302ce5dc8c9851f89fc..c2ec43c9c0431d40357c80803486d71ed87a1799 100644 (file)
@@ -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?