From: Paul Norman Date: Sun, 28 Jul 2013 23:24:33 +0000 (-0700) Subject: Make the node controller return the modified time for deleted nodes X-Git-Tag: live~5781 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/2d5df687fcbf2564e2f199535aed04f67953bd0e Make the node controller return the modified time for deleted nodes Fixes #384 --- diff --git a/app/controllers/node_controller.rb b/app/controllers/node_controller.rb index 5064a3c0b..a172b2dd7 100644 --- a/app/controllers/node_controller.rb +++ b/app/controllers/node_controller.rb @@ -26,8 +26,10 @@ class NodeController < ApplicationController # Dump the details on a node given in params[:id] def read node = Node.find(params[:id]) - if node.visible? - response.last_modified = node.timestamp + + response.last_modified = node.timestamp + + if node.visible render :text => node.to_xml.to_s, :content_type => "text/xml" else render :text => "", :status => :gone