diff modules/http/mod_atom.js @ 55:fd69d35cf2e6

Move default storage directory; better naming of nodes; fix notification sending.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Mon, 25 Jul 2011 17:35:32 -0700
parents 023f767662d3
children
line wrap: on
line diff
--- a/modules/http/mod_atom.js
+++ b/modules/http/mod_atom.js
@@ -23,7 +23,7 @@ exports.atom = {
 	url: /^\/atom/,
 	func: function (req, res) {
 		var url = require('url').parse(req.url);
-		nodeID = url.pathname.substr(url.pathname.indexOf('/', 1)+1);
+		var nodeID = url.pathname.substr(url.pathname.indexOf('/', 1)+1);
 
 		var children;
 		if (nodeID && nodeID != '') {