diff options
author | Kim Alvefur <zash@zash.se> | 2018-09-09 17:47:47 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-09-09 17:47:47 +0200 |
commit | 86444b030343247e579c0118874228c5337ca465 (patch) | |
tree | 9e9f14c7ffc8fb65d355005c694b180a1505036e | |
parent | f9845d48c5335a83f571c5d781db98569e3e7143 (diff) | |
download | prosody-86444b030343247e579c0118874228c5337ca465.tar.gz prosody-86444b030343247e579c0118874228c5337ca465.zip |
mod_vcard_legacy: Add some notes
-rw-r--r-- | plugins/mod_vcard_legacy.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/mod_vcard_legacy.lua b/plugins/mod_vcard_legacy.lua index e4ac225d..b822e56c 100644 --- a/plugins/mod_vcard_legacy.lua +++ b/plugins/mod_vcard_legacy.lua @@ -205,6 +205,7 @@ module:hook("iq-set/self/vcard-temp:vCard", function (event) if text then vcard4:tag("note"):text_tag("text", text):up(); end + -- <note> gets mapped into <NOTE> in the other direction elseif tag.name == "ADR" then vcard4:tag("adr") :text_tag("pobox", tag:get_child_text("POBOX")) @@ -224,6 +225,7 @@ module:hook("iq-set/self/vcard-temp:vCard", function (event) elseif tag.name == "PHOTO" then local avatar_type = tag:get_child_text("TYPE"); local avatar_payload = tag:get_child_text("BINVAL"); + -- Can EXTVAL be translated? No way to know the sha1 of the data? if avatar_payload then local avatar_raw = base64_decode(avatar_payload); |