mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-20 17:27:00 +01:00
Fix PEP node identity (#1717)
This commit is contained in:
parent
7e6d1c24c2
commit
636d68e0a9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user