Changeset

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
parents 9266:c5267f5fd6e6
children 9268:628b99811301
files plugins/mod_vcard_legacy.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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();