comparison 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
comparison
equal deleted inserted replaced
54:c2c9c06d6e9d 55:fd69d35cf2e6
21 21
22 exports.atom = { 22 exports.atom = {
23 url: /^\/atom/, 23 url: /^\/atom/,
24 func: function (req, res) { 24 func: function (req, res) {
25 var url = require('url').parse(req.url); 25 var url = require('url').parse(req.url);
26 nodeID = url.pathname.substr(url.pathname.indexOf('/', 1)+1); 26 var nodeID = url.pathname.substr(url.pathname.indexOf('/', 1)+1);
27 27
28 var children; 28 var children;
29 if (nodeID && nodeID != '') { 29 if (nodeID && nodeID != '') {
30 var md = storage.getMetadata(nodeID); 30 var md = storage.getMetadata(nodeID);
31 if (md['pubsub#type'] != NS.ATOM) 31 if (md['pubsub#type'] != NS.ATOM)