Comparison

plugins/mod_pubsub/pubsub.lib.lua @ 9038:fd053fcaf9bc

mod_pubsub: Revert disco#info part from previous commit
author Kim Alvefur <zash@zash.se>
date Sat, 14 Jul 2018 18:49:12 +0200
parent 9037:e3c8274427d3
child 9039:0124e5ec1556
comparison
equal deleted inserted replaced
9037:e3c8274427d3 9038:fd053fcaf9bc
185 return; 185 return;
186 end 186 end
187 event.exists = true; 187 event.exists = true;
188 reply:tag("identity", { category = "pubsub", type = "leaf" }):up(); 188 reply:tag("identity", { category = "pubsub", type = "leaf" }):up();
189 if node_obj.config then 189 if node_obj.config then
190 reply:add_child(node_metadata_form:form(config_to_xep0060(node_obj.config), "result")); 190 reply:add_child(node_metadata_form:form({
191 ["pubsub#title"] = node_obj.config.title;
192 ["pubsub#description"] = node_obj.config.description;
193 }, "result"));
191 end 194 end
192 end 195 end
193 196
194 function _M.handle_disco_items_node(event, service) 197 function _M.handle_disco_items_node(event, service)
195 local stanza, reply, node = event.stanza, event.reply, event.node; 198 local stanza, reply, node = event.stanza, event.reply, event.node;