# HG changeset patch # User Kim Alvefur # Date 1569072050 -7200 # Node ID 210278d5f99531e78351d79571b194f57b469008 # Parent 26afb1a6d0861d7fb4e858d7a635d8c090c1d7a2 mod_vcard_legacy: Advertise lack of avatar correctly (fixes #1431) (thanks lovetox) diff -r 26afb1a6d086 -r 210278d5f995 plugins/mod_vcard_legacy.lua --- a/plugins/mod_vcard_legacy.lua Wed Sep 11 15:03:54 2019 +0100 +++ b/plugins/mod_vcard_legacy.lua Sat Sep 21 15:20:50 2019 +0200 @@ -301,10 +301,10 @@ local pep_service = mod_pep.get_pep_service(username); stanza:remove_children("x", "vcard-temp:x:update"); - local x_update = st.stanza("x", { xmlns = "vcard-temp:x:update" }); + local x_update = st.stanza("x", { xmlns = "vcard-temp:x:update" }):tag("photo"); local ok, avatar_hash = pep_service:get_last_item("urn:xmpp:avatar:metadata", true); if ok and avatar_hash then - x_update:text_tag("photo", avatar_hash); + x_update:text(avatar_hash); end stanza:add_direct_child(x_update); end