Mercurial > prosody-hg
comparison plugins/mod_pubsub/mod_pubsub.lua @ 13608:df32fff0963d
mod_pubsub: Remove unused loop variable [luacheck]
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 08 Jan 2025 08:54:52 +0100 |
| parents | 5033029130f5 |
| children | cc916272c30f |
comparison
equal
deleted
inserted
replaced
| 13607:ca9426f98b8e | 13608:df32fff0963d |
|---|---|
| 182 local stanza, reply = event.stanza, event.reply; | 182 local stanza, reply = event.stanza, event.reply; |
| 183 local ok, ret = service:get_nodes(stanza.attr.from); | 183 local ok, ret = service:get_nodes(stanza.attr.from); |
| 184 if not ok then | 184 if not ok then |
| 185 return; | 185 return; |
| 186 end | 186 end |
| 187 for node, node_obj in pairs(ret) do | 187 for node in pairs(ret) do |
| 188 local ok, meta = service:get_node_metadata(node, stanza.attr.from); | 188 local ok, meta = service:get_node_metadata(node, stanza.attr.from); |
| 189 if ok then | 189 if ok then |
| 190 reply:tag("item", { jid = module.host, node = node, name = meta.title }):up(); | 190 reply:tag("item", { jid = module.host, node = node, name = meta.title }):up(); |
| 191 end | 191 end |
| 192 end | 192 end |
