aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-09-09 17:47:47 +0200
committerKim Alvefur <zash@zash.se>2018-09-09 17:47:47 +0200
commit76f20134f78f9173a24ed8448c1ab4a912a422b9 (patch)
tree9e9f14c7ffc8fb65d355005c694b180a1505036e /plugins
parentd2db4c5f4ae1319cca5614f90bd6b2aa3ac14469 (diff)
downloadprosody-76f20134f78f9173a24ed8448c1ab4a912a422b9.tar.gz
prosody-76f20134f78f9173a24ed8448c1ab4a912a422b9.zip
mod_vcard_legacy: Add some notes
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_vcard_legacy.lua2
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);