From b18280d35fccf685f553fe676b5c6289d6e3dfc7 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 10 Jan 2023 21:10:58 +0100 Subject: mod_invites: Prefer landing page over xmpp URI in shell command To mirror behavior of prosodyctl invocation --- plugins/mod_invites.lua | 4 ++-- 1 file 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 -- cgit v1.2.3