mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +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,
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user