Software /
code /
prosody
Diff
util/vcard.lua @ 9058:35421a289a75
util.vcard: Include values of 'properties' (eg PHOTO TYPE) in vcard-temp serialization
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 25 Jul 2018 23:54:48 +0200 |
parent | 8382:e5d00bf4a4d5 |
child | 9059:e1db06a0cc6b |
line wrap: on
line diff
--- a/util/vcard.lua Tue Jul 17 20:37:56 2018 +0100 +++ b/util/vcard.lua Wed Jul 25 23:54:48 2018 +0200 @@ -61,9 +61,11 @@ 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