diff options
author | Christophe Romain <chris.romain@gmail.com> | 2013-12-03 00:32:31 -0800 |
---|---|---|
committer | Christophe Romain <chris.romain@gmail.com> | 2013-12-03 00:32:31 -0800 |
commit | eda3feb284a9520e8e0e3fd62a8fece82aae0754 (patch) | |
tree | 8562644fcfbd0ee0129ce3b0f15722217cc3e9ae | |
parent | Update ejabberd version number to 2.1.13 (diff) | |
parent | Fix publishing on a nodetree_virtual pubsub tree. (diff) |
Merge pull request #84 from cstar/patch-1
Fix publishing on a nodetree_virtual pubsub tree.
-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() |