Software /
code /
prosody-modules
Changeset
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 |
parents | 3176:d34f5d969940 |
children | 3178:bd28da2f813c |
files | mod_pep_vcard_avatar/mod_pep_vcard_avatar.lua |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
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");