From df0acaf9855de1de4d433f0a300e6e856f60d3e8 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 22 Dec 2010 02:13:26 +0000 Subject: util.pubsub: get_items(): When requesting a specific item, use the id as a key to mirror the multiple-item case --- util/pubsub.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/pubsub.lua b/util/pubsub.lua index 657dcd9a..f7d4a702 100644 --- a/util/pubsub.lua +++ b/util/pubsub.lua @@ -227,7 +227,7 @@ function service:get_items(node, actor, id) return false, "item-not-found"; end if id then -- Restrict results to a single specific item - return true, { node_obj.data[id] }; + return true, { [id] = node_obj.data[id] }; else return true, node_obj.data; end -- cgit v1.2.3