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.
This commit is contained in:
Tom Hughes 2011-05-05 19:44:59 +01:00
parent 79ad65895b
commit a9ff3bfc4b

View file

@ -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? 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.changeset_id = new_node.changeset_id
self.tags = {}
self.visible = false self.visible = false
# update the changeset with the deleted position # update the changeset with the deleted position