diff options
author | Kim Alvefur <zash@zash.se> | 2018-12-01 00:11:49 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-12-01 00:11:49 +0100 |
commit | 41656354bf9ff7b97d3482b7b623d15f2fe99e68 (patch) | |
tree | 291917d6b49c8567e2c532245a17922e6c30f14e /plugins | |
parent | 6176e9ff1b48d42310eed5730aa82d8bc3968d22 (diff) | |
download | prosody-41656354bf9ff7b97d3482b7b623d15f2fe99e68.tar.gz prosody-41656354bf9ff7b97d3482b7b623d15f2fe99e68.zip |
mod_vcard_legacy: Limit injection of XEP-0153 to normal presence (fixes #1252)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_vcard_legacy.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_vcard_legacy.lua b/plugins/mod_vcard_legacy.lua index cf0724f3..38c56041 100644 --- a/plugins/mod_vcard_legacy.lua +++ b/plugins/mod_vcard_legacy.lua @@ -274,6 +274,7 @@ local function inject_xep153(event) local origin, stanza = event.origin, event.stanza; local username = origin.username; if not username then return end + if stanza.attr.type then return end local pep_service = mod_pep.get_pep_service(username); stanza:remove_children("x", "vcard-temp:x:update"); |