Fix PEP node identity (#1717)

This commit is contained in:
Christophe Romain 2017-08-01 14:41:16 +02:00
parent 7e6d1c24c2
commit 636d68e0a9
1 changed files with 2 additions and 10 deletions

View File

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