diff options
author | Kim Alvefur <zash@zash.se> | 2023-01-10 21:14:07 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2023-01-10 21:14:07 +0100 |
commit | 6264454dbe896339b61ae5d9531da635fca4ecc9 (patch) | |
tree | 2194271486b42a1f14a98813ef08f0fb78198e1c /plugins/mod_invites.lua | |
parent | d36469316651e85219ae8a70ab73be55ba889d68 (diff) | |
parent | b18280d35fccf685f553fe676b5c6289d6e3dfc7 (diff) | |
download | prosody-6264454dbe896339b61ae5d9531da635fca4ecc9.tar.gz prosody-6264454dbe896339b61ae5d9531da635fca4ecc9.zip |
Merge 0.12->trunk
Diffstat (limited to 'plugins/mod_invites.lua')
-rw-r--r-- | plugins/mod_invites.lua | 4 |
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 |