mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Follow pubsub configuration when using virtual nodetree
This commit is contained in:
parent
10c920ef13
commit
c4943cffe8
@ -83,7 +83,8 @@
|
||||
-export([subscription_to_string/1, affiliation_to_string/1,
|
||||
string_to_subscription/1, string_to_affiliation/1,
|
||||
extended_error/2, extended_error/3, service_jid/1,
|
||||
tree/1, tree/2, plugin/2, config/3, host/1, serverhost/1]).
|
||||
tree/1, tree/2, plugin/2, plugins/1, config/3,
|
||||
host/1, serverhost/1]).
|
||||
|
||||
%% API and gen_server callbacks
|
||||
-export([start_link/2, start/2, stop/1, init/1,
|
||||
|
@ -65,10 +65,11 @@ get_node(Host, Node) ->
|
||||
|
||||
get_node(Nidx) ->
|
||||
{Host, Node} = nodeid(Nidx),
|
||||
Record = #pubsub_node{nodeid = Node, id = Nidx},
|
||||
Module = jlib:binary_to_atom(<<"node_", (Record#pubsub_node.type)/binary>>),
|
||||
Record#pubsub_node{owners = [{<<"">>, Host, <<"">>}],
|
||||
options = Module:options()}.
|
||||
[Type|_] = mod_pubsub:plugins(Host),
|
||||
Module = mod_pubsub:plugin(Host, Type),
|
||||
#pubsub_node{nodeid = Node, id = Nidx, type = Type,
|
||||
owners = [{<<"">>, Host, <<"">>}],
|
||||
options = Module:options()}.
|
||||
|
||||
get_nodes(Host, _From) ->
|
||||
get_nodes(Host).
|
||||
|
Loading…
Reference in New Issue
Block a user