# HG changeset patch # User Kim Alvefur # Date 1543619509 -3600 # Node ID e71484c210fb398ed2fd11c3e2aa4d3a768cdcf5 # Parent 4790d1b8891961d02e6c80496a52ca2ce3969f0b mod_vcard_legacy: Limit injection of XEP-0153 to normal presence (fixes #1252) diff -r 4790d1b88919 -r e71484c210fb plugins/mod_vcard_legacy.lua --- 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");