# HG changeset patch # User Kim Alvefur # Date 1410877395 -7200 # Node ID c4c9ccc6e6c9a1f951e865ff57ecaab48e2ee1e6 # Parent 72ef98818b9085995c62da7e5f500aec4594ec92 mod_profile: Set metadata nodes ItemID to the same hash as the data node diff -r 72ef98818b90 -r c4c9ccc6e6c9 mod_profile/mod_profile.lua --- a/mod_profile/mod_profile.lua Sun Sep 14 18:52:54 2014 +0200 +++ b/mod_profile/mod_profile.lua Tue Sep 16 16:23:15 2014 +0200 @@ -67,7 +67,7 @@ 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"}) + pep:publish("urn:xmpp:avatar:metadata", true, photo_hash, st.stanza("item", {id=photo_hash}) :tag("metadata", { xmlns="urn:xmpp:avatar:metadata" }) :tag("info", { bytes = tostring(#photo_raw),