# HG changeset patch # User Kim Alvefur <zash@zash.se> # Date 1404780898 -7200 # Node ID b291a9423e0f37b25a0b998029d98738d0fbc8cc # Parent 019746bba318bf84c4a4db063160e9be8a6f8b92 mod_profile: Fix wrong use of "current" as id for avatar data diff -r 019746bba318 -r b291a9423e0f mod_profile/mod_profile.lua --- 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