mod_invites_register/mod_invites_register.lua
changeset 4603 06c9c9ef0a51
parent 4405 52e1ab99d25e
child 4677 eee7ef8eb0a2
--- a/mod_invites_register/mod_invites_register.lua	Tue Jun 22 12:25:36 2021 +0200
+++ b/mod_invites_register/mod_invites_register.lua	Fri Jun 25 15:12:46 2021 +0200
@@ -57,7 +57,7 @@
 				module:log("debug", "Sending automatic subscription request to %s from %s", contact, username);
 				if rostermanager.set_contact_pending_out(username, host, contact) then
 					rostermanager.roster_push(username, host, contact);
-					module:send(st.presence({type = "subscribe", to = contact }));
+					module:send(st.presence({type = "subscribe", from = username.."@"..host, to = contact }));
 				else
 					module:log("warn", "Failed to set contact pending out for %s", username);
 				end