mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-20 17:27:00 +01:00
fix build of Parents list in #pubsub_node
This commit is contained in:
parent
b82eeeeec9
commit
1b8876bf55
@ -362,9 +362,13 @@ raw_to_node(Host, [Node, Parent, Type, NodeIdx]) ->
|
||||
StdOpts, DbOpts);
|
||||
_ -> []
|
||||
end,
|
||||
Parents = case Parent of
|
||||
<<>> -> [];
|
||||
_ -> [Parent]
|
||||
end,
|
||||
#pubsub_node{nodeid =
|
||||
{Host, Node},
|
||||
parents = [Parent],
|
||||
parents = Parents,
|
||||
id = NodeIdx, type = Type, options = Options}.
|
||||
|
||||
% @spec (NodeRecord) -> ok | {error, Reason}
|
||||
|
Loading…
Reference in New Issue
Block a user