mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Keep disco#info on PEP compatible with XEP-0060 (#1717)
This commit is contained in:
parent
ce0beb550c
commit
06450f4a82
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user