Comparison

plugins/mod_pubsub/pubsub.lib.lua @ 8935:a825ef6de45a

mod_pubsub: Add the list of affiliations to reply
author Kim Alvefur <zash@zash.se>
date Tue, 26 Jun 2018 19:36:23 +0200
parent 8934:365bcf899093
child 8937:0ae46e6ea647
comparison
equal deleted inserted replaced
8934:365bcf899093 8935:a825ef6de45a
473 473
474 local reply = st.reply(stanza) 474 local reply = st.reply(stanza)
475 :tag("pubsub", { xmlns = xmlns_pubsub_owner }) 475 :tag("pubsub", { xmlns = xmlns_pubsub_owner })
476 :tag("affiliations", { node = node }); 476 :tag("affiliations", { node = node });
477 477
478 for jid, affiliation in pairs(node_obj.affiliations) do
479 reply:tag("affiliation", { jid = jid, affiliation = affiliation }):up();
480 end
481
478 origin.send(reply); 482 origin.send(reply);
479 return true; 483 return true;
480 end 484 end
481 485
482 --[[ TODO 486 --[[ TODO