mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
fix feature build on node disco#info
This commit is contained in:
parent
9840b8395e
commit
ae1af885ce
@ -1671,7 +1671,7 @@ node_disco_info(Host, Node, From, Identity, Features) ->
|
|||||||
% Other -> Other
|
% Other -> Other
|
||||||
% end.
|
% end.
|
||||||
Action = fun (#pubsub_node{type = Type, id = NodeId}) ->
|
Action = fun (#pubsub_node{type = Type, id = NodeId}) ->
|
||||||
I = Types = case tree_call(Host, get_subnodes,
|
Types = case tree_call(Host, get_subnodes,
|
||||||
[Host, Node, From])
|
[Host, Node, From])
|
||||||
of
|
of
|
||||||
[] -> [<<"leaf">>];
|
[] -> [<<"leaf">>];
|
||||||
@ -1687,7 +1687,7 @@ node_disco_info(Host, Node, From, Identity, Features) ->
|
|||||||
_ -> []
|
_ -> []
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
lists:map(fun (T) ->
|
I = lists:map(fun (T) ->
|
||||||
#xmlel{name = <<"identity">>,
|
#xmlel{name = <<"identity">>,
|
||||||
attrs =
|
attrs =
|
||||||
[{<<"category">>,
|
[{<<"category">>,
|
||||||
|
@ -1326,7 +1326,7 @@ node_disco_info(Host, Node, From, Identity, Features) ->
|
|||||||
% Other -> Other
|
% Other -> Other
|
||||||
% end.
|
% end.
|
||||||
Action = fun (#pubsub_node{type = Type, id = NodeId}) ->
|
Action = fun (#pubsub_node{type = Type, id = NodeId}) ->
|
||||||
I = Types = case tree_call(Host, get_subnodes,
|
Types = case tree_call(Host, get_subnodes,
|
||||||
[Host, Node, From])
|
[Host, Node, From])
|
||||||
of
|
of
|
||||||
[] -> [<<"leaf">>];
|
[] -> [<<"leaf">>];
|
||||||
@ -1342,7 +1342,7 @@ node_disco_info(Host, Node, From, Identity, Features) ->
|
|||||||
_ -> []
|
_ -> []
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
lists:map(fun (T) ->
|
I = lists:map(fun (T) ->
|
||||||
#xmlel{name = <<"identity">>,
|
#xmlel{name = <<"identity">>,
|
||||||
attrs =
|
attrs =
|
||||||
[{<<"category">>,
|
[{<<"category">>,
|
||||||
|
Loading…
Reference in New Issue
Block a user