# HG changeset patch # User Kim Alvefur # Date 1673381647 -3600 # Node ID 6a97d448cb1e31f1ad7a4d05b8a02f8b440a811f # Parent 8cbb109ff7ec7fab9dd40b1f88c9b994b0aab1ff# Parent dcbff9f038a0e50e7e43404e1435d154fbd1d1db Merge 0.12->trunk diff -r 8cbb109ff7ec -r 6a97d448cb1e plugins/mod_invites.lua --- a/plugins/mod_invites.lua Sun Jan 08 13:51:30 2023 +0100 +++ b/plugins/mod_invites.lua Tue Jan 10 21:14:07 2023 +0100 @@ -217,7 +217,7 @@ if not mod_invites then return nil, err or "mod_invites not loaded on this host"; end local invite, err = mod_invites.create_account(username); if not invite then return nil, err; end - return true, invite.uri; + return true, invite.landing_page or invite.uri; end function console_env.invite:create_contact(user_jid, allow_registration) @@ -226,7 +226,7 @@ if not mod_invites then return nil, err or "mod_invites not loaded on this host"; end local invite, err = mod_invites.create_contact(username, allow_registration); if not invite then return nil, err; end - return true, invite.uri; + return true, invite.landing_page or invite.uri; end end