From 41656354bf9ff7b97d3482b7b623d15f2fe99e68 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 1 Dec 2018 00:11:49 +0100 Subject: mod_vcard_legacy: Limit injection of XEP-0153 to normal presence (fixes #1252) --- plugins/mod_vcard_legacy.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins/mod_vcard_legacy.lua') 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"); -- cgit v1.2.3