mod_profile/mod_profile.lua
changeset 3191 7c450c27d4ba
parent 3190 1fe5b156d220
child 3194 76a2aca48b4f
--- 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");