X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/b9ae40d9784725b75e5b52f55659c80326656d8f..8ad1ce97983a5d4fb86ccb8ee4cd640a76f95255:/app/controllers/api/nodes_controller.rb diff --git a/app/controllers/api/nodes_controller.rb b/app/controllers/api/nodes_controller.rb index 891528a5f..dafb19ebd 100644 --- a/app/controllers/api/nodes_controller.rb +++ b/app/controllers/api/nodes_controller.rb @@ -26,13 +26,11 @@ module Api # Dump the details on a node given in params[:id] def show - node = Node.find(params[:id]) - - response.last_modified = node.timestamp + @node = Node.find(params[:id]) - if node.visible - @node = node + response.last_modified = @node.timestamp + if @node.visible # Render the result respond_to do |format| format.xml