aboutsummaryrefslogtreecommitdiffstats
path: root/util/pubsub.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-09-01 00:45:51 +0200
committerKim Alvefur <zash@zash.se>2018-09-01 00:45:51 +0200
commitfb2fdc660bc596f09c860d3876bf4d4c23344fb6 (patch)
tree4b616dfd20c70d83e7ad5dc26cd1fe5ef635f7f9 /util/pubsub.lua
parent8957ef2f7d72ed9817dd9bbac3afc61e1aa989b2 (diff)
downloadprosody-fb2fdc660bc596f09c860d3876bf4d4c23344fb6.tar.gz
prosody-fb2fdc660bc596f09c860d3876bf4d4c23344fb6.zip
util.pubsub: Expand comment on return type from get_items
Diffstat (limited to 'util/pubsub.lua')
-rw-r--r--util/pubsub.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/pubsub.lua b/util/pubsub.lua
index 7b29bb3d..cb21174f 100644
--- a/util/pubsub.lua
+++ b/util/pubsub.lua
@@ -583,7 +583,7 @@ function service:purge(node, actor, notify) --> ok, err
return true
end
-function service:get_items(node, actor, id) --> ok, err
+function service:get_items(node, actor, id) --> (true, { id, [id] = node }) or (false, err)
-- Access checking
if not self:may(node, actor, "get_items") then
return false, "forbidden";