From c3a4324ff10f956611014f1550124db6aabc4941 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(+) (limited to 'util/pubsub.lua') 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