Mercurial > prosody-hg
comparison plugins/mod_pubsub/pubsub.lib.lua @ 13954:11573716205f
mod_pubsub: Rename loop variable to avoid name conflict [luacheck]
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 25 Sep 2025 17:11:33 +0200 |
| parents | 3eb39ff813ac |
| children | 221f3378e7f4 |
comparison
equal
deleted
inserted
replaced
| 13953:3eb39ff813ac | 13954:11573716205f |
|---|---|
| 807 local reply = st.reply(stanza) | 807 local reply = st.reply(stanza) |
| 808 :tag("pubsub", { xmlns = xmlns_pubsub }) | 808 :tag("pubsub", { xmlns = xmlns_pubsub }) |
| 809 :tag("affiliations"); | 809 :tag("affiliations"); |
| 810 | 810 |
| 811 local jid = service.config.normalize_jid(stanza.attr.from); | 811 local jid = service.config.normalize_jid(stanza.attr.from); |
| 812 for node, node_obj in pairs(nodes) do | 812 for node_, node_obj in pairs(nodes) do |
| 813 local affiliation = node_obj.affiliations[jid]; | 813 local affiliation = node_obj.affiliations[jid]; |
| 814 if affiliation then | 814 if affiliation then |
| 815 reply:tag("affiliation", { node = node; affiliation = affiliation }):up(); | 815 reply:tag("affiliation", { node = node_; affiliation = affiliation }):up(); |
| 816 end | 816 end |
| 817 end | 817 end |
| 818 | 818 |
| 819 origin.send(reply); | 819 origin.send(reply); |
| 820 return true; | 820 return true; |
