Make the node controller return the modified time for deleted nodes

Fixes #384
This commit is contained in:
Paul Norman 2013-07-28 16:24:33 -07:00 committed by Tom Hughes
parent a87feb207a
commit 2d5df687fc

View file

@ -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