diff options
author | Kim Alvefur <zash@zash.se> | 2018-09-08 16:49:29 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-09-08 16:49:29 +0200 |
commit | 0a1cd66889885a798319cbebd3dd0e66ee92e72f (patch) | |
tree | 6681a63fbaa3b9c2d1840981b208ddc0f7ab1784 | |
parent | 2f939029ef95c96bc718609b7708d4a00f0753a7 (diff) | |
download | prosody-0a1cd66889885a798319cbebd3dd0e66ee92e72f.tar.gz prosody-0a1cd66889885a798319cbebd3dd0e66ee92e72f.zip |
mod_vcard4: Advertise feature on account instead of host
-rw-r--r-- | plugins/mod_vcard4.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/mod_vcard4.lua b/plugins/mod_vcard4.lua index 1c11847e..378c0602 100644 --- a/plugins/mod_vcard4.lua +++ b/plugins/mod_vcard4.lua @@ -3,7 +3,9 @@ local jid_split = require "util.jid".split; 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; |