From 18a51e456f7153e3f34f41d08be3c81948492a3e Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 30 Oct 2018 18:20:54 +0100 Subject: pubsub: Set pubsub#title as name attribute in disco#items (fixes #1226) --- plugins/mod_pubsub/mod_pubsub.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/mod_pubsub/mod_pubsub.lua') diff --git a/plugins/mod_pubsub/mod_pubsub.lua b/plugins/mod_pubsub/mod_pubsub.lua index 05d2d663..40adcafe 100644 --- a/plugins/mod_pubsub/mod_pubsub.lua +++ b/plugins/mod_pubsub/mod_pubsub.lua @@ -152,7 +152,7 @@ module:hook("host-disco-items", function (event) return; end for node, node_obj in pairs(ret) do - reply:tag("item", { jid = module.host, node = node, name = node_obj.config.name }):up(); + reply:tag("item", { jid = module.host, node = node, name = node_obj.config.title }):up(); end end); -- cgit v1.2.3