From: Tom Hughes Date: Thu, 5 May 2011 18:44:59 +0000 (+0100) Subject: Remove tags from deleted nodes X-Git-Tag: live~6798^2~18 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/a9ff3bfc4b94530debc35bee33ee7558d0f7b61d Remove tags from deleted nodes When ways or relations are deleted we remove their tags and there is no reason why nodes should be different. --- diff --git a/app/models/node.rb b/app/models/node.rb index 7db4aed09..3a1d580e0 100644 --- a/app/models/node.rb +++ b/app/models/node.rb @@ -142,6 +142,7 @@ class Node < ActiveRecord::Base raise OSM::APIPreconditionFailedError.new("Node #{self.id} is still used by relation #{rel.relation.id}.") unless rel.nil? self.changeset_id = new_node.changeset_id + self.tags = {} self.visible = false # update the changeset with the deleted position