changeset 1470:b291a9423e0f

mod_profile: Fix wrong use of "current" as id for avatar data
author Kim Alvefur <zash@zash.se>
date Tue, 08 Jul 2014 02:54:58 +0200
parents 019746bba318
children 153df603f73d
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	Tue Jul 08 02:54:04 2014 +0200
+++ b/mod_profile/mod_profile.lua	Tue Jul 08 02:54:58 2014 +0200
@@ -74,7 +74,7 @@
 					id = photo_hash,
 					type = identify(photo_raw),
 				}));
-		pep:publish("urn:xmpp:avatar:data", true, photo_hash, st.stanza("item", {id="current"})
+		pep:publish("urn:xmpp:avatar:data", true, photo_hash, st.stanza("item", {id=photo_hash})
 			:tag("data", { xmlns="urn:xmpp:avatar:data" }):text(photo[1]));
 	end
 end