From: Eric Cestari Date: Tue, 23 Jul 2013 19:16:30 +0000 (+0200) Subject: Fix publishing on a nodetree_virtual pubsub tree. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=512e016362a88d640e8ae5cf944c6323fa45066d;p=ejabberd Fix publishing on a nodetree_virtual pubsub tree. --- diff --git a/src/mod_pubsub/nodetree_virtual.erl b/src/mod_pubsub/nodetree_virtual.erl index ff216c30d..746d664f2 100644 --- a/src/mod_pubsub/nodetree_virtual.erl +++ b/src/mod_pubsub/nodetree_virtual.erl @@ -125,8 +125,8 @@ get_parentnodes(_Host, _Node, _From) -> %% Node = mod_pubsub:pubsubNode() %% From = mod_pubsub:jid() %% @doc

Virtual node tree does not handle parent/child. Child list is empty.

-get_parentnodes_tree(_Host, _Node, _From) -> - []. +get_parentnodes_tree(Host, Node, From) -> + [{0, [get_node(Host, Node, From)]}]. %% @spec (Host, Node, From) -> [pubsubNode()] %% Host = mod_pubsub:host()