mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-30 16:36:29 +01:00
fix nodetree virtual to allow node subscription
SVN Revision: 2117
This commit is contained in:
parent
497d4d26bb
commit
7c45f8f053
@ -92,9 +92,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 = [{undefined, list_to_binary(Host), undefined}]}.
|
||||
get_node({Host, _} = NodeId) ->
|
||||
#pubsub_node{nodeid = NodeId, id = NodeId, owners = [{undefined, list_to_binary(Host), undefined}]}.
|
||||
|
||||
%% @spec (Host) -> [pubsubNode()]
|
||||
%% Host = mod_pubsub:host() | mod_pubsub:jid()
|
||||
|
Loading…
Reference in New Issue
Block a user