Software /
code /
prosody
Comparison
plugins/mod_pubsub/mod_pubsub.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 |
parent | 9234:d00e8ec7ece2 |
child | 9720:e7ddf70ae417 |
child | 9828:8e68136cde08 |
comparison
equal
deleted
inserted
replaced
9595:69e1838a01c6 | 9597:17d43543f9b6 |
---|---|
150 local ok, ret = service:get_nodes(stanza.attr.from); | 150 local ok, ret = service:get_nodes(stanza.attr.from); |
151 if not ok then | 151 if not ok then |
152 return; | 152 return; |
153 end | 153 end |
154 for node, node_obj in pairs(ret) do | 154 for node, node_obj in pairs(ret) do |
155 reply:tag("item", { jid = module.host, node = node, name = node_obj.config.name }):up(); | 155 reply:tag("item", { jid = module.host, node = node, name = node_obj.config.title }):up(); |
156 end | 156 end |
157 end); | 157 end); |
158 | 158 |
159 local admin_aff = module:get_option_string("default_admin_affiliation", "owner"); | 159 local admin_aff = module:get_option_string("default_admin_affiliation", "owner"); |
160 local function get_affiliation(jid) | 160 local function get_affiliation(jid) |