# HG changeset patch # User Matthew Wild # Date 1314646935 14400 # Node ID af40cf682ebad21c5bd7fe9db3c5aeabc3361b3e # Parent 35ebd8e5747a1933bf1346d24e1053e05391ec67 util.pubsub: Use built-in actor for auto-creating nodes on publish and subscribe (so they never fail due to permissions) diff -r 35ebd8e5747a -r af40cf682eba util/pubsub.lua --- a/util/pubsub.lua Mon Aug 29 13:09:29 2011 -0400 +++ b/util/pubsub.lua Mon Aug 29 15:42:15 2011 -0400 @@ -104,7 +104,7 @@ if not self.config.autocreate_on_subscribe then return false, "item-not-found"; else - local ok, err = self:create(node, actor); + local ok, err = self:create(node, true); if not ok then return ok, err; end @@ -220,7 +220,7 @@ if not self.config.autocreate_on_publish then return false, "item-not-found"; end - local ok, err = self:create(node, actor); + local ok, err = self:create(node, true); if not ok then return ok, err; end