diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-12-22 02:13:26 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-12-22 02:13:26 +0000 |
commit | df0acaf9855de1de4d433f0a300e6e856f60d3e8 (patch) | |
tree | 10d5d26463ba10d615d15df721967e31541aeb78 | |
parent | 26f027fc5201c3288f7c112a965f6a515be281cf (diff) | |
download | prosody-df0acaf9855de1de4d433f0a300e6e856f60d3e8.tar.gz prosody-df0acaf9855de1de4d433f0a300e6e856f60d3e8.zip |
util.pubsub: get_items(): When requesting a specific item, use the id as a key to mirror the multiple-item case
-rw-r--r-- | util/pubsub.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |