Software /
code /
prosody-modules
Diff
mod_profile/mod_profile.lua @ 3187:7c450c27d4ba
mod_profile: Skip injecting xep153 into presence for sessions with no username
s2s or component maybe?
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 13 Jul 2018 14:38:40 +0200 |
parent | 3186:1fe5b156d220 |
child | 3190:76a2aca48b4f |
line wrap: on
line diff
--- 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");