aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-07-14 18:49:12 +0200
committerKim Alvefur <zash@zash.se>2018-07-14 18:49:12 +0200
commit58f2bd888edf08645a1d91f4193e55554f4d2ddc (patch)
tree114e29c8a836b22c17a6839305b2b6b97d2511c4
parentcc6a5c5a34518810fa3d211c38d6916c126f7dfa (diff)
downloadprosody-58f2bd888edf08645a1d91f4193e55554f4d2ddc.tar.gz
prosody-58f2bd888edf08645a1d91f4193e55554f4d2ddc.zip
mod_pubsub: Revert disco#info part from previous commit
-rw-r--r--plugins/mod_pubsub/pubsub.lib.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/mod_pubsub/pubsub.lib.lua b/plugins/mod_pubsub/pubsub.lib.lua
index 561d06c1..ebb8727d 100644
--- a/plugins/mod_pubsub/pubsub.lib.lua
+++ b/plugins/mod_pubsub/pubsub.lib.lua
@@ -187,7 +187,10 @@ function _M.handle_disco_info_node(event, service)
event.exists = true;
reply:tag("identity", { category = "pubsub", type = "leaf" }):up();
if node_obj.config then
- reply:add_child(node_metadata_form:form(config_to_xep0060(node_obj.config), "result"));
+ reply:add_child(node_metadata_form:form({
+ ["pubsub#title"] = node_obj.config.title;
+ ["pubsub#description"] = node_obj.config.description;
+ }, "result"));
end
end