Software /
code /
prosody
Changeset
11871:5dcbba569fb9
ejabberd2prosody.lua: fix MUC subject conversion with appropriate destructuring
author | arcseconds |
---|---|
date | Tue, 26 Oct 2021 23:29:40 +1300 |
parents | 11870:1d1ed2be3491 |
children | 11872:ffff0d8a9c68 |
files | tools/ejabberd2prosody.lua |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/ejabberd2prosody.lua Mon Oct 25 15:47:18 2021 +0200 +++ b/tools/ejabberd2prosody.lua Tue Oct 26 23:29:40 2021 +1300 @@ -187,7 +187,8 @@ 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