From bbb91af188a026dad2dae1915d9ae2ba20daaf02 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 19 Nov 2016 17:34:54 +0100 Subject: util.pubsub: Fix item retrieval by including the item order as it was before using util.cache (thanks walduhu) --- util/pubsub.lua | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.3