Software /
code /
prosody-modules
Diff
mod_profile/mod_profile.lua @ 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 |
parent | 1424:9892a537e7fc |
child | 1442:253e374824a8 |
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"));