diff options
author | Evgeny Khramtsov <ekhramtsov@process-one.net> | 2019-10-24 14:59:47 +0300 |
---|---|---|
committer | Evgeny Khramtsov <ekhramtsov@process-one.net> | 2019-10-24 14:59:47 +0300 |
commit | c604bdb897974d743f08577d76d5800c76ee2d90 (patch) | |
tree | 795f2b4f8ca1722f5b005aa86e53951401e8161f /src/gen_pubsub_nodetree.erl | |
parent | Fix logger initialization on OTP<21.3 (diff) |
Limit result set of disco#items for mod_pubsub
The size of a list of nodes returned for disco#items request
is now controlled by option 'max_nodes_discoitems'. The default
value is 100. The name and the default value of the option is
chosen to be consistent with mod_muc's 'max_rooms_discoitems' option.
Diffstat (limited to 'src/gen_pubsub_nodetree.erl')
-rw-r--r-- | src/gen_pubsub_nodetree.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gen_pubsub_nodetree.erl b/src/gen_pubsub_nodetree.erl index 813ed71ce..e834f8e0b 100644 --- a/src/gen_pubsub_nodetree.erl +++ b/src/gen_pubsub_nodetree.erl @@ -61,7 +61,7 @@ {error, stanza_error()}. -callback get_nodes(Host :: host(), - From :: jid:jid())-> + Limit :: non_neg_integer() | infinity)-> [pubsubNode()]. -callback get_nodes(Host :: host())-> @@ -79,8 +79,8 @@ [{0, [pubsubNode(),...]}]. -callback get_subnodes(Host :: host(), - NodeId :: nodeId(), - From :: jid:jid()) -> + NodeId :: nodeId(), + Limit :: non_neg_integer() | infinity) -> [pubsubNode()]. -callback get_subnodes_tree(Host :: host(), |