Mercurial > prosody-hg
diff plugins/mod_vcard_legacy.lua @ 9672:e71484c210fb 0.11
mod_vcard_legacy: Limit injection of XEP-0153 to normal presence (fixes #1252)
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 01 Dec 2018 00:11:49 +0100 |
| parents | d6964d16455c |
| children | 00d210deea28 |
line wrap: on
line diff
--- a/plugins/mod_vcard_legacy.lua Fri Nov 30 19:40:39 2018 +0100 +++ b/plugins/mod_vcard_legacy.lua Sat Dec 01 00:11:49 2018 +0100 @@ -274,6 +274,7 @@ 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");
