util.vcard: Add support for uri types in vcard4
[prosody.git] / util / vcard.lua
index 29a408442a28a271a9e22bfb79937c840759f40e..152b0b2dfe903620ba24f347859f07f772d3682c 100644 (file)
@@ -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