Software /
code /
prosody
Diff
util/pubsub.lua @ 9236:83375ec33619
util.pubsub: Expand comment on return type from get_items
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 01 Sep 2018 00:45:51 +0200 |
parent | 9233:885dd6845e62 |
child | 9516:038446c50630 |
line wrap: on
line diff
--- a/util/pubsub.lua Fri Aug 31 23:54:13 2018 +0200 +++ b/util/pubsub.lua Sat Sep 01 00:45:51 2018 +0200 @@ -583,7 +583,7 @@ 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";