mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
When exporting mod_mam, MUC entries are assigned to the MUC service (#3680)
This commit is contained in:
parent
c9c5839da4
commit
cfc393a12e
@ -73,11 +73,16 @@ export(Server, Output) ->
|
|||||||
end, Modules),
|
end, Modules),
|
||||||
close_output(Output, IO).
|
close_output(Output, IO).
|
||||||
|
|
||||||
export(Server, Output, Module1) ->
|
export(Server, Output, mod_mam = M1) ->
|
||||||
Module = case Module1 of
|
MucServices = gen_mod:get_module_opt_hosts(Server, mod_muc),
|
||||||
mod_pubsub -> pubsub_db;
|
[export2(MucService, Output, M1, M1) || MucService <- MucServices],
|
||||||
_ -> Module1
|
export2(Server, Output, M1, M1);
|
||||||
end,
|
export(Server, Output, mod_pubsub = M1) ->
|
||||||
|
export2(Server, Output, M1, pubsub_db);
|
||||||
|
export(Server, Output, M1) ->
|
||||||
|
export2(Server, Output, M1, M1).
|
||||||
|
|
||||||
|
export2(Server, Output, Module1, Module) ->
|
||||||
SQLMod = gen_mod:db_mod(sql, Module),
|
SQLMod = gen_mod:db_mod(sql, Module),
|
||||||
LServer = jid:nameprep(iolist_to_binary(Server)),
|
LServer = jid:nameprep(iolist_to_binary(Server)),
|
||||||
IO = prepare_output(Output),
|
IO = prepare_output(Output),
|
||||||
|
Loading…
Reference in New Issue
Block a user