Keep disco#info on PEP compatible with XEP-0060 (#1717)

This commit is contained in:
Christophe Romain 2017-08-03 15:48:23 +02:00
parent ce0beb550c
commit 06450f4a82
1 changed files with 6 additions and 1 deletions

View File

@ -546,7 +546,12 @@ disco_identity(Host, Node, From) ->
case get_allowed_items_call(Host, Nidx, From, Type,
Options, Owners) of
{result, _} ->
{result, [#identity{category = <<"pubsub">>, type = <<"pep">>}]};
{result, [#identity{category = <<"pubsub">>, type = <<"pep">>},
#identity{category = <<"pubsub">>, type = <<"leaf">>,
name = case get_option(Options, title) of
false -> <<>>;
Title -> Title
end}]};
_ ->
{result, []}
end