Diff

plugins/mod_vcard_legacy.lua @ 9271:651e945ad971

mod_vcard_legacy: Handle avatar without vcard4 Since vcards are just avatar containers in many modern clients, aborting in case of no vcard4 data is not optimal. The upgrade mechanism needs further tweaks.
author Kim Alvefur <zash@zash.se>
date Fri, 07 Sep 2018 01:04:53 +0200
parent 9270:b024fae6919e
child 9272:c047be86dd51
line wrap: on
line diff
--- a/plugins/mod_vcard_legacy.lua	Fri Sep 07 00:36:31 2018 +0200
+++ b/plugins/mod_vcard_legacy.lua	Fri Sep 07 01:04:53 2018 +0200
@@ -107,10 +107,6 @@
 				vcard_temp:up();
 			end
 		end
-	else
-		local legacy_vcard = st.deserialize(vcards:get(jid_split(stanza.attr.to) or origin.username));
-		origin.send(st.reply(stanza):add_child(legacy_vcard or vcard_temp));
-		return true;
 	end
 
 	local meta_ok, avatar_meta = pep_service:get_items("urn:xmpp:avatar:metadata", stanza.attr.from);