mirror of
https://github.com/processone/ejabberd.git
synced 2024-06-14 22:00:16 +02: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,
|
-export([subscription_to_string/1, affiliation_to_string/1,
|
||||||
string_to_subscription/1, string_to_affiliation/1,
|
string_to_subscription/1, string_to_affiliation/1,
|
||||||
extended_error/2, extended_error/3, service_jid/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
|
%% API and gen_server callbacks
|
||||||
-export([start_link/2, start/2, stop/1, init/1,
|
-export([start_link/2, start/2, stop/1, init/1,
|
||||||
|
|
|
@ -65,9 +65,10 @@ get_node(Host, Node) ->
|
||||||
|
|
||||||
get_node(Nidx) ->
|
get_node(Nidx) ->
|
||||||
{Host, Node} = nodeid(Nidx),
|
{Host, Node} = nodeid(Nidx),
|
||||||
Record = #pubsub_node{nodeid = Node, id = Nidx},
|
[Type|_] = mod_pubsub:plugins(Host),
|
||||||
Module = jlib:binary_to_atom(<<"node_", (Record#pubsub_node.type)/binary>>),
|
Module = mod_pubsub:plugin(Host, Type),
|
||||||
Record#pubsub_node{owners = [{<<"">>, Host, <<"">>}],
|
#pubsub_node{nodeid = Node, id = Nidx, type = Type,
|
||||||
|
owners = [{<<"">>, Host, <<"">>}],
|
||||||
options = Module:options()}.
|
options = Module:options()}.
|
||||||
|
|
||||||
get_nodes(Host, _From) ->
|
get_nodes(Host, _From) ->
|
||||||
|
|
Loading…
Reference in New Issue
Block a user