Software /
code /
prosody
Changeset
9286:992e986589b8
mod_vcard_legacy: Add some notes
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 09 Sep 2018 17:47:47 +0200 |
parents | 9285:78673e81243f |
children | 9287:420e0bf55bf5 |
files | plugins/mod_vcard_legacy.lua |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_vcard_legacy.lua Sun Sep 09 02:43:45 2018 +0200 +++ b/plugins/mod_vcard_legacy.lua Sun Sep 09 17:47:47 2018 +0200 @@ -205,6 +205,7 @@ 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 @@ 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);