# HG changeset patch # User Kim Alvefur # Date 1530034583 -7200 # Node ID a825ef6de45aab6c962a997e3a3392bf16e187da # Parent 365bcf8990937e43f0ebeb61b90645a8e9261207 mod_pubsub: Add the list of affiliations to reply diff -r 365bcf899093 -r a825ef6de45a plugins/mod_pubsub/pubsub.lib.lua --- a/plugins/mod_pubsub/pubsub.lib.lua Tue Jun 26 19:34:35 2018 +0200 +++ b/plugins/mod_pubsub/pubsub.lib.lua Tue Jun 26 19:36:23 2018 +0200 @@ -475,6 +475,10 @@ :tag("pubsub", { xmlns = xmlns_pubsub_owner }) :tag("affiliations", { node = node }); + for jid, affiliation in pairs(node_obj.affiliations) do + reply:tag("affiliation", { jid = jid, affiliation = affiliation }):up(); + end + origin.send(reply); return true; end