Community Modules


changeset 4eff14ac6853

mod_pep_vcard_avatar: Advertise XEP-0398 feature

author
Kim Alvefur
date
parents
children
files

1 files changed, 4 insertions(+), 1 deletions(-)

↓ Download patch

--- 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");