Software /
code /
prosody-modules
Changeset
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 |
parents | 3186:1fe5b156d220 |
children | 3188:5c3f3f5a4377 |
files | mod_profile/mod_profile.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
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");