mod_invites_register: Fix missing 'from' attribute (thanks Martin)
This should probably cause a noisier error in Prosody, than the current
> No hosts[from_host] (please report): <stanza>
A stack trace would have been useful, for example.
--- 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