25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01: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, case get_allowed_items_call(Host, Nidx, From, Type,
Options, Owners) of Options, Owners) of
{result, _} -> {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, []} {result, []}
end end