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 | ea8133f31d811764fe60a180b074c03149986c2b (patch) | |
tree | 6681a63fbaa3b9c2d1840981b208ddc0f7ab1784 | |
parent | 90cb134f6d4325e257a2d3ea1c4964e65b16b57f (diff) | |
download | prosody-ea8133f31d811764fe60a180b074c03149986c2b.tar.gz prosody-ea8133f31d811764fe60a180b074c03149986c2b.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; |