diff options
author | Kim Alvefur <zash@zash.se> | 2016-11-19 17:34:54 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-11-19 17:34:54 +0100 |
commit | bbb91af188a026dad2dae1915d9ae2ba20daaf02 (patch) | |
tree | ad21ea4a9d7e8ef5575bcbbb9742edcee05eab60 /util | |
parent | f043b0f7eaed6fad1430f149278b37d2e2a2010c (diff) | |
download | prosody-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')
-rw-r--r-- | util/pubsub.lua | 1 |
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; |