# HG changeset patch # User Kim Alvefur # Date 1536267938 -7200 # Node ID 37e2cace1f2a536ded6aed09f1d2096e31107b79 # Parent c5267f5fd6e62a9ffb858f96889339a69892b849 mod_vcard_legacy: Use correct method to clear avatar data diff -r c5267f5fd6e6 -r 37e2cace1f2a plugins/mod_vcard_legacy.lua --- a/plugins/mod_vcard_legacy.lua Thu Sep 06 16:44:48 2018 +0100 +++ b/plugins/mod_vcard_legacy.lua Thu Sep 06 23:05:38 2018 +0200 @@ -137,7 +137,7 @@ :tag("vcard", { xmlns = 'urn:ietf:params:xml:ns:vcard-4.0' }); if pep_service:purge("urn:xmpp:avatar:metadata", origin.full_jid) then - pep_service:publish("urn:xmpp:avatar:data", origin.full_jid); + pep_service:purge("urn:xmpp:avatar:data", origin.full_jid); end vcard4:tag("fn"):text_tag("text", vcard_temp:get_child_text("FN")):up();