# HG changeset patch # User Kim Alvefur # Date 1404780844 -7200 # Node ID 019746bba318bf84c4a4db063160e9be8a6f8b92 # Parent cf32265eb4c794bd11e43c2005e3dce3aed4890d mod_profile: Add the missing child element and move info attributes there diff -r cf32265eb4c7 -r 019746bba318 mod_profile/mod_profile.lua --- a/mod_profile/mod_profile.lua Fri Jul 04 14:47:14 2014 +0200 +++ b/mod_profile/mod_profile.lua Tue Jul 08 02:54:04 2014 +0200 @@ -68,12 +68,12 @@ pep:purge("urn:xmpp:avatar:metadata", true); pep:purge("urn:xmpp:avatar:data", true); pep:publish("urn:xmpp:avatar:metadata", true, "current", st.stanza("item", {id="current"}) - :tag("metadata", { - xmlns="urn:xmpp:avatar:metadata", - bytes = tostring(#photo_raw), - id = photo_hash, - type = identify(photo_raw), - })); + :tag("metadata", { xmlns="urn:xmpp:avatar:metadata" }) + :tag("info", { + bytes = tostring(#photo_raw), + id = photo_hash, + type = identify(photo_raw), + })); pep:publish("urn:xmpp:avatar:data", true, photo_hash, st.stanza("item", {id="current"}) :tag("data", { xmlns="urn:xmpp:avatar:data" }):text(photo[1])); end