# HG changeset patch # User Kim Alvefur # Date 1531485520 -7200 # Node ID 7c450c27d4bac6c31f391689ffe5e60e89f3454f # Parent 1fe5b156d220bcd6a5d707a5674490509f6879db mod_profile: Skip injecting xep153 into presence for sessions with no username s2s or component maybe? diff -r 1fe5b156d220 -r 7c450c27d4ba mod_profile/mod_profile.lua --- a/mod_profile/mod_profile.lua Fri Jul 13 01:13:37 2018 +0200 +++ b/mod_profile/mod_profile.lua Fri Jul 13 14:38:40 2018 +0200 @@ -240,6 +240,7 @@ local function inject_xep153(event) local origin, stanza = event.origin, event.stanza; local username = origin.username; + if not username then return end local pep = pep_plus.get_pep_service(username); stanza:remove_children("x", "vcard-temp:x:update");