aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pubsub/mod_pubsub.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-10-30 18:20:54 +0100
committerKim Alvefur <zash@zash.se>2018-10-30 18:20:54 +0100
commit18a51e456f7153e3f34f41d08be3c81948492a3e (patch)
treeb44fc3ef401359311297daf74c55ab1f2d9985cd /plugins/mod_pubsub/mod_pubsub.lua
parent65b03e973d2743d38f1ae09283bf7c8c6f72e546 (diff)
downloadprosody-18a51e456f7153e3f34f41d08be3c81948492a3e.tar.gz
prosody-18a51e456f7153e3f34f41d08be3c81948492a3e.zip
pubsub: Set pubsub#title as name attribute in disco#items (fixes #1226)
Diffstat (limited to 'plugins/mod_pubsub/mod_pubsub.lua')
-rw-r--r--plugins/mod_pubsub/mod_pubsub.lua2
1 files changed, 1 insertions, 1 deletions
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);