diff options
author | arcseconds <devnull@localhost> | 2021-10-26 23:29:40 +1300 |
---|---|---|
committer | arcseconds <devnull@localhost> | 2021-10-26 23:29:40 +1300 |
commit | 38722376258e3a2888326fdc05132050dca2b25c (patch) | |
tree | db8101ac54e045fe6dfd779941584b7d28f166d3 | |
parent | 619cf0043f51d100acb0b4f88b62f300058e274b (diff) | |
download | prosody-38722376258e3a2888326fdc05132050dca2b25c.tar.gz prosody-38722376258e3a2888326fdc05132050dca2b25c.zip |
ejabberd2prosody.lua: fix MUC subject conversion with appropriate destructuring
-rwxr-xr-x | tools/ejabberd2prosody.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/ejabberd2prosody.lua b/tools/ejabberd2prosody.lua index 4d03a704..e3caefd5 100755 --- a/tools/ejabberd2prosody.lua +++ b/tools/ejabberd2prosody.lua @@ -187,7 +187,8 @@ function muc_room(node, host, properties) for _,aff in ipairs(properties.affiliations) do store._affiliations[build_jid(aff[1])] = aff[2][1] or aff[2]; end - store._data.subject = properties.subject; + -- destructre ejabberd's subject datum (e.g. [{text,<<>>,<<"my room subject">>}] ) + store._data.subject = properties.subject[1][3]; if properties.subject_author then store._data.subject_from = store.jid .. "/" .. properties.subject_author; end |