Diff

mod_pep_vcard_avatar/mod_pep_vcard_avatar.lua @ 3177:4eff14ac6853

mod_pep_vcard_avatar: Advertise XEP-0398 feature
author Kim Alvefur <zash@zash.se>
date Thu, 12 Jul 2018 21:00:01 +0200
parent 2864:6f3859233515
child 3221:b98c7c33550e
line wrap: on
line diff
--- 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");