diff options
author | Kim Alvefur <zash@zash.se> | 2023-01-10 21:10:58 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2023-01-10 21:10:58 +0100 |
commit | b18280d35fccf685f553fe676b5c6289d6e3dfc7 (patch) | |
tree | 7c78a29d2f495c548169c950c8e4418dc7b31cbc /plugins | |
parent | fe97c773a6b8e61c6aee0511e30164e2fbdd6091 (diff) | |
download | prosody-b18280d35fccf685f553fe676b5c6289d6e3dfc7.tar.gz prosody-b18280d35fccf685f553fe676b5c6289d6e3dfc7.zip |
mod_invites: Prefer landing page over xmpp URI in shell command
To mirror behavior of prosodyctl invocation
Diffstat (limited to 'plugins')
-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 |