diff options
author | Kim Alvefur <zash@zash.se> | 2014-09-11 01:17:56 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2014-09-11 01:17:56 +0200 |
commit | fb0e709aa2d5fb52da6fb643a3cdfd921e8cde33 (patch) | |
tree | 147e215854eea3b4657112876b5c45863c73acc8 /plugins/mod_pubsub/pubsub.lib.lua | |
parent | a685dfb89e5c8895a767011961d2289810b72a1e (diff) | |
parent | 15303b0d3a84572090e81dc7c737b575184135b6 (diff) | |
download | prosody-fb0e709aa2d5fb52da6fb643a3cdfd921e8cde33.tar.gz prosody-fb0e709aa2d5fb52da6fb643a3cdfd921e8cde33.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 |