Merge pull request #84 from cstar/patch-1

Fix publishing on a nodetree_virtual pubsub tree.
This commit is contained in:
Christophe Romain 2013-12-03 00:32:31 -08:00
commit eda3feb284
1 changed files with 2 additions and 2 deletions

View 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()