Software /
code /
prosody-modules
Changeset
1441:07c9306c2c1f
mod_profile: Don't pass old vcard data trough vcard lib
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 20 Jun 2014 18:14:26 +0200 (2014-06-20) |
parents | 1440:78133eb11e7d |
children | 1442:253e374824a8 |
files | mod_profile/mod_profile.lua |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_profile/mod_profile.lua Fri Jun 20 17:49:31 2014 +0200 +++ b/mod_profile/mod_profile.lua Fri Jun 20 18:14:26 2014 +0200 @@ -87,6 +87,9 @@ if not data then data = legacy_storage:get(username); data = data and st.deserialize(data); + if data then + return origin.send(st.reply(stanza):add_child(data)); + end end if not data then return origin.send(st.error_reply(stanza, "cancel", "item-not-found"));