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
commitbbb91af188a026dad2dae1915d9ae2ba20daaf02 (patch)
treead21ea4a9d7e8ef5575bcbbb9742edcee05eab60 /util/pubsub.lua
parentf043b0f7eaed6fad1430f149278b37d2e2a2010c (diff)
downloadprosody-bbb91af188a026dad2dae1915d9ae2ba20daaf02.tar.gz
prosody-bbb91af188a026dad2dae1915d9ae2ba20daaf02.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;