diff mod_profile/mod_profile.lua @ 1503:c4c9ccc6e6c9

mod_profile: Set metadata nodes ItemID to the same hash as the data node
author Kim Alvefur <zash@zash.se>
date Tue, 16 Sep 2014 16:23:15 +0200
parents 698686dca982
children f367d7cbfaa6
line wrap: on
line diff
--- 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),