aboutsummaryrefslogtreecommitdiffstats
path: root/util/pubsub.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-11-19 17:34:54 +0100
committerKim Alvefur <zash@zash.se>2016-11-19 17:34:54 +0100
commitc3a4324ff10f956611014f1550124db6aabc4941 (patch)
treead21ea4a9d7e8ef5575bcbbb9742edcee05eab60 /util/pubsub.lua
parent383aa66ca845f5f85684f9a30f8bc0933513fe98 (diff)
downloadprosody-c3a4324ff10f956611014f1550124db6aabc4941.tar.gz
prosody-c3a4324ff10f956611014f1550124db6aabc4941.zip
util.pubsub: Fix item retrieval by including the item order as it was before using util.cache (thanks walduhu)
Diffstat (limited to 'util/pubsub.lua')
-rw-r--r--util/pubsub.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/pubsub.lua b/util/pubsub.lua
index e96df5fc..1db917d8 100644
--- a/util/pubsub.lua
+++ b/util/pubsub.lua
@@ -331,6 +331,7 @@ function service:get_items(node, actor, id)
else
local data = {}
for key, value in self.data[node]:items() do
+ data[#data+1] = key;
data[key] = value;
end
return true, data;