Changeset

12835:6a97d448cb1e

Merge 0.12->trunk
author Kim Alvefur <zash@zash.se>
date Tue, 10 Jan 2023 21:14:07 +0100
parents 12833:8cbb109ff7ec (current diff) 12834:dcbff9f038a0 (diff)
children 12836:dbe9781fd278
files
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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