diff options
author | Kim Alvefur <zash@zash.se> | 2014-07-09 08:23:16 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2014-07-09 08:23:16 +0200 |
commit | bb40012ca2d5a7eb38d86f4cef5488b31f6da0d0 (patch) | |
tree | 5718cffca53cf35742a703f2a1c55bfdb822e6ba | |
parent | 2023aaf6ca2f6ee7a0af2d18b275fc7c9dbba352 (diff) | |
download | prosody-bb40012ca2d5a7eb38d86f4cef5488b31f6da0d0.tar.gz prosody-bb40012ca2d5a7eb38d86f4cef5488b31f6da0d0.zip |
util.vcard: Add support for uri types in vcard4
-rw-r--r-- | util/vcard.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/util/vcard.lua b/util/vcard.lua index 29a40844..152b0b2d 100644 --- a/util/vcard.lua +++ b/util/vcard.lua @@ -348,6 +348,8 @@ local function item_to_vcard4(item) local prop_def = vCard4_dtd[typ]; if prop_def == "text" then t:tag("text"):text(item[1]):up(); + elseif prop_def == "uri" then + t:tag("uri"):text(item[1]):up(); elseif type(prop_def) == "table" then if prop_def.values then for i, v in ipairs(prop_def.values) do |