24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-14 22:00:16 +02:00

Fix PEP node identity (#1717)

This commit is contained in:
Christophe Romain 2017-08-01 14:41:16 +02:00
parent 7e6d1c24c2
commit 636d68e0a9

View File

@ -546,14 +546,7 @@ 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">>, {result, [#identity{category = <<"pubsub">>, type = <<"pep">>}]};
type = <<"pep">>},
#identity{category = <<"pubsub">>,
type = <<"leaf">>,
name = case get_option(Options, title) of
false -> <<>>;
[Title] -> Title
end}]};
_ -> _ ->
{result, []} {result, []}
end end
@ -586,8 +579,7 @@ disco_features(Host, Node, From) ->
Type, Options, Owners) of Type, Options, Owners) of
{result, _} -> {result, _} ->
{result, {result,
[?NS_PUBSUB | [?NS_PUBSUB | [feature(F) || F <- plugin_features(Host, <<"pep">>)]]};
[feature(F) || F <- plugin_features(Host, <<"pep">>)]]};
_ -> _ ->
{result, []} {result, []}
end end