Software /
code /
prosody
Changeset
9283:e977b64ebd81
mod_vcard4: Advertise feature on account instead of host
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 08 Sep 2018 16:49:29 +0200 |
parents | 9282:778d2dbfc784 |
children | 9284:161f604e14fa |
files | plugins/mod_vcard4.lua |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_vcard4.lua Sat Sep 08 11:52:44 2018 +0200 +++ b/plugins/mod_vcard4.lua Sat Sep 08 16:49:29 2018 +0200 @@ -3,7 +3,9 @@ local mod_pep = module:depends("pep"); -module:add_feature("urn:ietf:params:xml:ns:vcard-4.0"); +module:hook("account-disco-info", function (event) + event.reply:tag("feature", { var = "urn:ietf:params:xml:ns:vcard-4.0" }):up(); +end); module:hook("iq-get/bare/urn:ietf:params:xml:ns:vcard-4.0:vcard", function (event) local origin, stanza = event.origin, event.stanza;