Mercurial > psgxs
diff nodes.js @ 4:4c93e76fa371
Ensure that the creator of a node is the default owner; don’t crash
when sending metadata.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Tue, 29 Jun 2010 13:38:07 +0200 |
parents | c2954a9e5665 |
children | 9a6b8b3357c6 |
line wrap: on
line diff
--- a/nodes.js +++ b/nodes.js @@ -34,7 +34,11 @@ exports.Node = function(params) { this.items = {}; if (config.enabled('subscribe')) this.subscribers = {}; + this.owner = []; + if (params && params['pubsub#creator']) + this.owner.push(params['pubsub#creator']); + if (config.enabled('publisher-affiliation')) this.publisher = []; if (config.enabled('publish-only-affiliation'))