# HG changeset patch # User Kim Alvefur # Date 1403280866 -7200 # Node ID 07c9306c2c1f49790ca34e822a260ec54017a0a5 # Parent 78133eb11e7db975c514cb0884729bfe1721ecc5 mod_profile: Don't pass old vcard data trough vcard lib diff -r 78133eb11e7d -r 07c9306c2c1f mod_profile/mod_profile.lua --- 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"));