From bf57f712da014da37fe4c40ecb09a83017a77e32 Mon Sep 17 00:00:00 2001 From: Christophe Romain Date: Fri, 29 May 2009 00:44:07 +0000 Subject: [PATCH] fix nodetree virtual to allow node subscription SVN Revision: 2117 --- src/mod_pubsub/nodetree_virtual.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mod_pubsub/nodetree_virtual.erl b/src/mod_pubsub/nodetree_virtual.erl index 43b516072..4b331aeb9 100644 --- a/src/mod_pubsub/nodetree_virtual.erl +++ b/src/mod_pubsub/nodetree_virtual.erl @@ -91,9 +91,9 @@ set_node(_NodeRecord) -> get_node(Host, Node, _From) -> get_node(Host, Node). get_node(Host, Node) -> - #pubsub_node{nodeid = {Host, Node}, id = {Host, Node}}. -get_node(NodeId) -> - #pubsub_node{nodeid = NodeId, id = NodeId}. + #pubsub_node{nodeid = {Host, Node}, id = {Host, Node}, owners = [{"",Host,""}]}. +get_node({Host, _} = NodeId) -> + #pubsub_node{nodeid = NodeId, id = NodeId, owners = [{"",Host,""}]}. %% @spec (Host) -> [pubsubNode()] %% Host = mod_pubsub:host() | mod_pubsub:jid()