Software /
code /
prosody
Changeset
10118:199dae5b6f11
mod_vcard_legacy: Complete roundtrip support for ORG/ORGNAME
vcard-temp -> vcard4 worked previously but not the other way around
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 02 Aug 2019 21:57:57 +0200 |
parents | 10117:8643b784626c |
children | 10119:29733134c76c |
files | plugins/mod_vcard_legacy.lua |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_vcard_legacy.lua Sat Jan 19 22:01:54 2019 +0100 +++ b/plugins/mod_vcard_legacy.lua Fri Aug 02 21:57:57 2019 +0200 @@ -110,6 +110,10 @@ if uri and uri:sub(1, 5) == "xmpp:" then vcard_temp:text_tag("JABBERID", uri:sub(6)) end + elseif tag.name == "org" then + vcard_temp:tag("ORG") + :text_tag("ORGNAME", tag:get_child_text("text")) + :up(); end end end