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 | c3a4324ff10f956611014f1550124db6aabc4941 (patch) | |
tree | ad21ea4a9d7e8ef5575bcbbb9742edcee05eab60 | |
parent | 383aa66ca845f5f85684f9a30f8bc0933513fe98 (diff) | |
download | prosody-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)
-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; |