diff options
author | Eric Cestari <ecestari@mac.com> | 2013-07-23 21:16:30 +0200 |
---|---|---|
committer | Eric Cestari <ecestari@mac.com> | 2013-07-23 21:16:30 +0200 |
commit | 512e016362a88d640e8ae5cf944c6323fa45066d (patch) | |
tree | 8562644fcfbd0ee0129ce3b0f15722217cc3e9ae /src | |
parent | Update ejabberd version number to 2.1.13 (diff) |
Fix publishing on a nodetree_virtual pubsub tree.
Diffstat (limited to 'src')
-rw-r--r-- | src/mod_pubsub/nodetree_virtual.erl | 4 |
1 files changed, 2 insertions, 2 deletions
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 <p>Virtual node tree does not handle parent/child. Child list is empty.</p> -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() |