Software /
code /
prosody
Diff
util/pubsub.lua @ 4364:af40cf682eba
util.pubsub: Use built-in actor for auto-creating nodes on publish and subscribe (so they never fail due to permissions)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 29 Aug 2011 15:42:15 -0400 |
parent | 4100:69e3f1e7111e |
child | 4365:6704b3cd032e |
line wrap: on
line diff
--- 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