aboutsummaryrefslogtreecommitdiffstats
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
commit418bf0b73fd9d628b907ed339f6146394ed67d25 (patch)
tree4b616dfd20c70d83e7ad5dc26cd1fe5ef635f7f9
parent6d2a2dc325a38ccad7349942b383f73702538783 (diff)
downloadprosody-418bf0b73fd9d628b907ed339f6146394ed67d25.tar.gz
prosody-418bf0b73fd9d628b907ed339f6146394ed67d25.zip
util.pubsub: Expand comment on return type from get_items
-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";