# HG changeset patch # User Kim Alvefur # Date 1531422001 -7200 # Node ID 4eff14ac6853d2105513c39d322530bf039684c8 # Parent d34f5d9699401064368122e97d834e3868196ea0 mod_pep_vcard_avatar: Advertise XEP-0398 feature diff -r d34f5d969940 -r 4eff14ac6853 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");