However, vcard4 contains only "note" and missing "desc".
Map vcard4 "note" to both "NOTE" and "DESC" vcard-temp fields to fix the issue.
-- You received this message because you are subscribed to the Google Groups "prosody-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prosody-dev/756be53c-0637-2b9a-9815-4779aa610f01%40valdikss.org.ru.
# HG changeset patch # User ValdikSS <[email protected]> # Date 1638721552 -10800 # Sun Dec 05 19:25:52 2021 +0300 # Node ID 7de7025126c8af2afd2a2a951dd533e031461b8c # Parent f995d62044fab5c6af4d784f11c06562d3f8cbda mod_vcard_legacy: map "note" to both NOTE and DESC in vcard-temp Fixes vcard text description in older clients which expect DESC. diff -r f995d62044fa -r 7de7025126c8 plugins/mod_vcard_legacy.lua --- a/plugins/mod_vcard_legacy.lua Sun Dec 05 14:49:06 2021 +0100 +++ b/plugins/mod_vcard_legacy.lua Sun Dec 05 19:25:52 2021 +0300 @@ -62,6 +62,9 @@ local text = tag:get_child_text(typ); if text then vcard_temp:text_tag(tag.name:upper(), text); + if tag.name == "note" then + vcard_temp:text_tag("DESC", text); + end end elseif tag.name == "email" then local text = tag:get_child_text("text");
OpenPGP_signature
Description: OpenPGP digital signature
