24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-02 21:17:12 +02:00

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

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