From 86444b030343247e579c0118874228c5337ca465 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 9 Sep 2018 17:47:47 +0200 Subject: mod_vcard_legacy: Add some notes --- plugins/mod_vcard_legacy.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins/mod_vcard_legacy.lua') 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 + -- gets mapped into 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); -- cgit v1.2.3