Changeset

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 1502:72ef98818b90
children 1504:b8164f18142a
files mod_profile/mod_profile.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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),