Software /
code /
prosody
Comparison
plugins/mod_pubsub/mod_pubsub.lua @ 5851:cdcfd93e2f43
mod_pubsub, util.pubsub: Keep track of the order of items
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 04 Oct 2013 16:40:27 +0200 |
parent | 5690:630e7224a65f |
child | 5973:905b4fd863b4 |
comparison
equal
deleted
inserted
replaced
5850:e8c743f4213f | 5851:cdcfd93e2f43 |
---|---|
101 local ok, ret = service:get_items(node, stanza.attr.from); | 101 local ok, ret = service:get_items(node, stanza.attr.from); |
102 if not ok then | 102 if not ok then |
103 return origin.send(pubsub_error_reply(stanza, ret)); | 103 return origin.send(pubsub_error_reply(stanza, ret)); |
104 end | 104 end |
105 | 105 |
106 for id, item in pairs(ret) do | 106 for _, id in ipairs(ret) do |
107 reply:tag("item", { jid = module.host, name = id }):up(); | 107 reply:tag("item", { jid = module.host, name = id }):up(); |
108 end | 108 end |
109 event.exists = true; | 109 event.exists = true; |
110 end); | 110 end); |
111 | 111 |