Software /
code /
prosody
Diff
plugins/mod_vcard_legacy.lua @ 9267:37e2cace1f2a
mod_vcard_legacy: Use correct method to clear avatar data
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 06 Sep 2018 23:05:38 +0200 |
parent | 9260:0fc6ffc57dc0 |
child | 9268:628b99811301 |
line wrap: on
line diff
--- 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();