Software /
code /
prosody
Comparison
plugins/mod_pubsub/pubsub.lib.lua @ 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 |
parent | 6446:011ca9b88179 |
child | 6448:f799b45cf735 |
comparison
equal
deleted
inserted
replaced
6446:011ca9b88179 | 6447:8c2dc2ac5a40 |
---|---|
280 end | 280 end |
281 | 281 |
282 function handlers.get_default(origin, stanza, default, service) | 282 function handlers.get_default(origin, stanza, default, service) |
283 local reply = st.reply(stanza) | 283 local reply = st.reply(stanza) |
284 :tag("pubsub", { xmlns = xmlns_pubsub_owner }) | 284 :tag("pubsub", { xmlns = xmlns_pubsub_owner }) |
285 :tag("configure", { node = node }) | 285 :tag("default") |
286 :add_child(form:form(service.node_default_config)); | 286 :add_child(node_config_form:form(service.node_default_config)); |
287 return origin.send(reply); | 287 return origin.send(reply); |
288 end | 288 end |
289 | 289 |
290 return _M; | 290 return _M; |