aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_vcard_legacy.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-09-06 23:05:38 +0200
committerKim Alvefur <zash@zash.se>2018-09-06 23:05:38 +0200
commitebfed28595275e68a85f8c70c859e7cf91c57ca4 (patch)
tree3b72a11d3729d1a24f65d71f3106e13ee3a18f0b /plugins/mod_vcard_legacy.lua
parentd78bd730e5654ba99f1fbdda5ef07b8b271efe4b (diff)
downloadprosody-ebfed28595275e68a85f8c70c859e7cf91c57ca4.tar.gz
prosody-ebfed28595275e68a85f8c70c859e7cf91c57ca4.zip
mod_vcard_legacy: Use correct method to clear avatar data
Diffstat (limited to 'plugins/mod_vcard_legacy.lua')
-rw-r--r--plugins/mod_vcard_legacy.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_vcard_legacy.lua b/plugins/mod_vcard_legacy.lua
index e348b84f..4320d96c 100644
--- a/plugins/mod_vcard_legacy.lua
+++ b/plugins/mod_vcard_legacy.lua
@@ -137,7 +137,7 @@ module:hook("iq-set/self/vcard-temp:vCard", function (event)
: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();