diff options
author | Boris Chernov <icemedved@gmail.com> | 2020-03-30 10:47:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-30 09:47:36 +0200 |
commit | 87dda1b638cb757cb065ac78b2d2e266bc553555 (patch) | |
tree | 5d6db73f57a5868a0cafd8a01d9fd3b411febd57 | |
parent | Make webadmin redirect to page that end with / (diff) |
sql_type should be taken for LServer, not LHost (#3202)
sql_type option should be retrieved for the main domain, not the MUC subdomain
-rw-r--r-- | src/mod_mam_sql.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_mam_sql.erl b/src/mod_mam_sql.erl index eec682df..8198bdfa 100644 --- a/src/mod_mam_sql.erl +++ b/src/mod_mam_sql.erl @@ -105,7 +105,7 @@ store(Pkt, LServer, {LUser, LHost}, Type, Peer, Nick, _Dir, TS) -> jid:tolower(Peer)), Body = fxml:get_subtag_cdata(Pkt, <<"body">>), SType = misc:atom_to_binary(Type), - SqlType = ejabberd_option:sql_type(LHost), + SqlType = ejabberd_option:sql_type(LServer), XML = case mod_mam_opt:compress_xml(LServer) of true -> J1 = case Type of |