Mercurial > psgxs
diff modules/http/mod_atom.js @ 41:bc717575e66a
Much better handling of modules.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sun, 20 Feb 2011 15:51:12 +0100 |
parents | 62cbb1c49bc5 |
children | 023f767662d3 |
line wrap: on
line diff
--- a/modules/http/mod_atom.js +++ b/modules/http/mod_atom.js @@ -1,11 +1,3 @@ -var config = require('../../configuration'); -var storage = require('../../storage'); -var forms = require('../../forms'); -var errors = require('../../errors'); -var makeError = errors.makeError; -var NS = require('../../namespaces'); -var xmpp = require('xmpp'); - exports.atom = { url: /^\/atom/, func: function (req, res) { @@ -28,7 +20,7 @@ exports.atom = { if (md['pubsub#description']) response.c('subtitle').t(md['pubsub#description']).up(); if (md['pubsub#creation_date']) - response.c('published').t(md['pubsub#creation_date']).up(); + response.c('published').t(md['pubsub#creation_date'].toString()).up(); children = storage.getItems(nodeID); if (typeof children == 'number')