Comparison

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
comparison
equal deleted inserted replaced
9266:c5267f5fd6e6 9267:37e2cace1f2a
135 135
136 local vcard4 = st.stanza("item", { xmlns = "http://jabber.org/protocol/pubsub", id = "current" }) 136 local vcard4 = st.stanza("item", { xmlns = "http://jabber.org/protocol/pubsub", id = "current" })
137 :tag("vcard", { xmlns = 'urn:ietf:params:xml:ns:vcard-4.0' }); 137 :tag("vcard", { xmlns = 'urn:ietf:params:xml:ns:vcard-4.0' });
138 138
139 if pep_service:purge("urn:xmpp:avatar:metadata", origin.full_jid) then 139 if pep_service:purge("urn:xmpp:avatar:metadata", origin.full_jid) then
140 pep_service:publish("urn:xmpp:avatar:data", origin.full_jid); 140 pep_service:purge("urn:xmpp:avatar:data", origin.full_jid);
141 end 141 end
142 142
143 vcard4:tag("fn"):text_tag("text", vcard_temp:get_child_text("FN")):up(); 143 vcard4:tag("fn"):text_tag("text", vcard_temp:get_child_text("FN")):up();
144 144
145 local N = vcard_temp:get_child("N"); 145 local N = vcard_temp:get_child("N");