aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_vcard4.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-09-08 16:49:29 +0200
committerKim Alvefur <zash@zash.se>2018-09-08 16:49:29 +0200
commitea8133f31d811764fe60a180b074c03149986c2b (patch)
tree6681a63fbaa3b9c2d1840981b208ddc0f7ab1784 /plugins/mod_vcard4.lua
parent90cb134f6d4325e257a2d3ea1c4964e65b16b57f (diff)
downloadprosody-ea8133f31d811764fe60a180b074c03149986c2b.tar.gz
prosody-ea8133f31d811764fe60a180b074c03149986c2b.zip
mod_vcard4: Advertise feature on account instead of host
Diffstat (limited to 'plugins/mod_vcard4.lua')
-rw-r--r--plugins/mod_vcard4.lua4
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;