Changeset

6447:8c2dc2ac5a40

mod_pubsub: Fix retreival of node config defaults
author Kim Alvefur <zash@zash.se>
date Sun, 28 Sep 2014 02:48:29 +0200
parents 6446:011ca9b88179
children 6448:f799b45cf735
files plugins/mod_pubsub/pubsub.lib.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_pubsub/pubsub.lib.lua	Sun Sep 28 02:47:54 2014 +0200
+++ b/plugins/mod_pubsub/pubsub.lib.lua	Sun Sep 28 02:48:29 2014 +0200
@@ -282,8 +282,8 @@
 function handlers.get_default(origin, stanza, default, service)
 	local reply = st.reply(stanza)
 		:tag("pubsub", { xmlns = xmlns_pubsub_owner })
-			:tag("configure", { node = node })
-				:add_child(form:form(service.node_default_config));
+			:tag("default")
+				:add_child(node_config_form:form(service.node_default_config));
 	return origin.send(reply);
 end