diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/vcard.lua | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/util/vcard.lua b/util/vcard.lua index 51758c41..8cbc7165 100644 --- a/util/vcard.lua +++ b/util/vcard.lua @@ -61,9 +61,11 @@ local function item_to_xep54(item) end if prop_def.props then - for _,v in pairs(prop_def.props) do - if item[v] then - t:tag(v):up(); + for _,prop in pairs(prop_def.props) do + if item[prop] then + for _, v in ipairs(item[prop]) do + t:text_tag(prop, v); + end end end end |