X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/7da8a5a1a82c759ff08a7cf434bb1e51158ff7af..eca8f6e849d8b45b088a50c61c2031aa02a87cb4:/app/models/old_way.rb diff --git a/app/models/old_way.rb b/app/models/old_way.rb index 6fea12db2..ec4bb5136 100644 --- a/app/models/old_way.rb +++ b/app/models/old_way.rb @@ -146,7 +146,7 @@ class OldWay < ActiveRecord::Base def get_nodes_revert(timestamp) points=[] self.nds.each do |n| - oldnode = OldNode.where('node_id = ? AND timestamp <= ? AND redaction_id is NULL', n, timestamp).order("timestamp DESC").first + oldnode = OldNode.where('node_id = ? AND timestamp <= ?', n, timestamp).unredacted.order("timestamp DESC").first curnode = Node.find(n) id = n; reuse = curnode.visible if oldnode.lat != curnode.lat or oldnode.lon != curnode.lon or oldnode.tags != curnode.tags then