comparison mod_profile/mod_profile.lua @ 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 698686dca982
comparison
equal deleted inserted replaced
1469:019746bba318 1470:b291a9423e0f
72 :tag("info", { 72 :tag("info", {
73 bytes = tostring(#photo_raw), 73 bytes = tostring(#photo_raw),
74 id = photo_hash, 74 id = photo_hash,
75 type = identify(photo_raw), 75 type = identify(photo_raw),
76 })); 76 }));
77 pep:publish("urn:xmpp:avatar:data", true, photo_hash, st.stanza("item", {id="current"}) 77 pep:publish("urn:xmpp:avatar:data", true, photo_hash, st.stanza("item", {id=photo_hash})
78 :tag("data", { xmlns="urn:xmpp:avatar:data" }):text(photo[1])); 78 :tag("data", { xmlns="urn:xmpp:avatar:data" }):text(photo[1]));
79 end 79 end
80 end 80 end
81 81
82 -- The "temporary" vCard XEP-0054 part 82 -- The "temporary" vCard XEP-0054 part