diff options
author | Matthew Wild <mwild1@gmail.com> | 2013-10-05 12:16:28 -0400 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2013-10-05 12:16:28 -0400 |
commit | 8754e4be8504fbdbdd796818d2ce68bb02e104e5 (patch) | |
tree | 9344408f15cd0951aad0c621076ac09fb81d539a /plugins/mod_pubsub/pubsub.lib.lua | |
parent | fa21be14b2c444aa7848c401e2be40bdd101e67a (diff) | |
parent | 841a59e0e13f566e3c2f324f8c54470dbec0e8e9 (diff) | |
download | prosody-8754e4be8504fbdbdd796818d2ce68bb02e104e5.tar.gz prosody-8754e4be8504fbdbdd796818d2ce68bb02e104e5.zip |
Merge 0.10->trunk
Diffstat (limited to 'plugins/mod_pubsub/pubsub.lib.lua')
-rw-r--r-- | plugins/mod_pubsub/pubsub.lib.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_pubsub/pubsub.lib.lua b/plugins/mod_pubsub/pubsub.lib.lua index 2b015e34..4e9acd68 100644 --- a/plugins/mod_pubsub/pubsub.lib.lua +++ b/plugins/mod_pubsub/pubsub.lib.lua @@ -42,8 +42,8 @@ function handlers.get_items(origin, stanza, items, service) end local data = st.stanza("items", { node = node }); - for _, entry in pairs(results) do - data:add_child(entry); + for _, id in ipairs(results) do + data:add_child(results[id]); end local reply; if data then |