Make the node controller return the modified time for deleted nodes
Fixes #384
This commit is contained in:
parent
a87feb207a
commit
2d5df687fc
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue