mod_pep_vcard_avatar: Advertise XEP-0398 feature
authorKim Alvefur <zash@zash.se>
Thu, 12 Jul 2018 21:00:01 +0200
changeset 3181 4eff14ac6853
parent 3180 d34f5d969940
child 3182 bd28da2f813c
mod_pep_vcard_avatar: Advertise XEP-0398 feature
mod_pep_vcard_avatar/mod_pep_vcard_avatar.lua
--- a/mod_pep_vcard_avatar/mod_pep_vcard_avatar.lua	Sun Jul 08 13:04:46 2018 +0200
+++ b/mod_pep_vcard_avatar/mod_pep_vcard_avatar.lua	Thu Jul 12 21:00:01 2018 +0200
@@ -16,7 +16,10 @@
 local mod_pep = module:depends"pep";
 local pep_data = mod_pep.module.save().data;
 
-module:add_feature("http://prosody.im/protocol/vcard-pep-integration");
+module:hook("account-disco-info", function (event)
+	event.reply:tag("feature", { var = "urn:xmpp:pep-vcard-conversion:0" }):up();
+end);
+
 module:depends"vcard";
 local vcard_storage = module:open_store("vcard");