Mercurial > prosody-hg
comparison plugins/mod_pep.lua @ 9597:17d43543f9b6 0.11
pubsub: Set pubsub#title as name attribute in disco#items (fixes #1226)
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 30 Oct 2018 18:20:54 +0100 |
| parents | b8bfcfbe5126 |
| children | 2a42b72468ca fd8aaab6669c |
comparison
equal
deleted
inserted
replaced
| 9595:69e1838a01c6 | 9597:17d43543f9b6 |
|---|---|
| 462 | 462 |
| 463 local ok, ret = service:get_nodes(jid_bare(stanza.attr.from)); | 463 local ok, ret = service:get_nodes(jid_bare(stanza.attr.from)); |
| 464 if not ok then return; end | 464 if not ok then return; end |
| 465 | 465 |
| 466 for node, node_obj in pairs(ret) do | 466 for node, node_obj in pairs(ret) do |
| 467 reply:tag("item", { jid = user_bare, node = node, name = node_obj.config.name }):up(); | 467 reply:tag("item", { jid = user_bare, node = node, name = node_obj.config.title }):up(); |
| 468 end | 468 end |
| 469 end); | 469 end); |
