aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_invites.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mod_invites.lua')
-rw-r--r--plugins/mod_invites.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_invites.lua b/plugins/mod_invites.lua
index 1f284537..881b851e 100644
--- a/plugins/mod_invites.lua
+++ b/plugins/mod_invites.lua
@@ -217,7 +217,7 @@ do
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 @@ do
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