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 | e5080d5db18f7617e8c8455355432f11575d3895 (patch) | |
tree | 291917d6b49c8567e2c532245a17922e6c30f14e /plugins | |
parent | 5d9620afaafa4e6242077e5a59a1b03c2b6b8dc2 (diff) | |
download | prosody-e5080d5db18f7617e8c8455355432f11575d3895.tar.gz prosody-e5080d5db18f7617e8c8455355432f11575d3895.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"); |