Mercurial > psgxs
diff modules/mod_publish.js @ 58:b98e545a94f7 default tip
Always use children instead of tags. Might break something.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Tue, 13 Sep 2011 00:54:55 +0200 |
parents | 99bd1d1ac071 |
children |
line wrap: on
line diff
--- a/modules/mod_publish.js +++ b/modules/mod_publish.js @@ -53,7 +53,7 @@ exports.publish = { return makeError(response, errors.itemid_required.n); itemID = itemID? itemID: uuid(); - if (item.tags.length != 1) + if (item.children.length != 1) return makeError(response, errors.pub.publish.bad_payload.n); var conf = storage.getConfiguration(nodeID);