diff options
author | Kim Alvefur <zash@zash.se> | 2018-09-01 00:45:51 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-09-01 00:45:51 +0200 |
commit | fb2fdc660bc596f09c860d3876bf4d4c23344fb6 (patch) | |
tree | 4b616dfd20c70d83e7ad5dc26cd1fe5ef635f7f9 /util | |
parent | 8957ef2f7d72ed9817dd9bbac3afc61e1aa989b2 (diff) | |
download | prosody-fb2fdc660bc596f09c860d3876bf4d4c23344fb6.tar.gz prosody-fb2fdc660bc596f09c860d3876bf4d4c23344fb6.zip |
util.pubsub: Expand comment on return type from get_items
Diffstat (limited to 'util')
-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 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"; |