]> granicus.if.org Git - ejabberd/commitdiff
Fix publishing on a nodetree_virtual pubsub tree.
authorEric Cestari <ecestari@mac.com>
Tue, 23 Jul 2013 19:16:30 +0000 (21:16 +0200)
committerEric Cestari <ecestari@mac.com>
Tue, 23 Jul 2013 19:16:30 +0000 (21:16 +0200)
src/mod_pubsub/nodetree_virtual.erl

index ff216c30df536af58856526a9ed6ce6a5ee5584a..746d664f280b0714f0b759ce3d66a68a8aa2af60 100644 (file)
@@ -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()