Comparison

plugins/mod_pubsub/pubsub.lib.lua @ 13177:6f64542a1336

mod_pubsub: Send correct jid attribute in disco#items Fixes use in PEP where the JID does not equal the bare domain.
author Kim Alvefur <zash@zash.se>
date Sat, 08 Jul 2023 18:23:40 +0200
parent 12021:376522fb3f52
child 13179:1b1ed555f307
comparison
equal deleted inserted replaced
13139:5d5869f14c4d 13177:6f64542a1336
307 event.origin.send(pubsub_error_reply(stanza, ret)); 307 event.origin.send(pubsub_error_reply(stanza, ret));
308 return true; 308 return true;
309 end 309 end
310 310
311 for _, id in ipairs(ret) do 311 for _, id in ipairs(ret) do
312 reply:tag("item", { jid = service.jid or module.host, name = id }):up(); 312 reply:tag("item", { jid = service.config.jid or module.host, name = id }):up();
313 end 313 end
314 event.exists = true; 314 event.exists = true;
315 end 315 end
316 316
317 function _M.handle_pubsub_iq(event, service) 317 function _M.handle_pubsub_iq(event, service)