Changeset

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
parents 4363:35ebd8e5747a
children 4365:6704b3cd032e
files util/pubsub.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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