#1905 Improve the output of invite creation shell commands
Reporter
lissine
Owner
MattJ
Created
Updated
Stars
★ (1)
Tags
Type-Enhancement
Status-New
Priority-Medium
lissine
on
When mod_invites_page is loaded, the invite adhoc commands returns three things:
- an xmpp: URI
- an https link
- the invite expiration time
On the other hand, the `invite:create_contact(user_jid)` shell command returns:
- an xmpp: URI
and the `invite:create_reset(user_jid)` shell command returns:
- an https link
- the invite expiration time
The `invite:create_contact` shell command should output an https link, and probably the invite expiration time too.
And for consistency, the xmpp: URI should either be shown in both shell commands, or in neither one.
MattJ
on
All three commands already prefer to return a URL if one is available. As Prosody does not come with an invitation page by default, whether a URL is available depends on the invitations page you are using and what it supports.
Could you share what invitations page you are using? (the likely options are either mod_invites_page from community modules, or the new invites_page option in 13.0 which supports external providers such as https://xmpp.link
Changes
owner MattJ
lissine
on
I'm using the mod_invites_page community module.
I wasn't aware there was an alternative to it.
lissine
on
Note that `invite:create_account` and `invite:create_reset` both generate an https link (using mod_invites_page) but `invite:create_contact` doesn't.
When mod_invites_page is loaded, the invite adhoc commands returns three things: - an xmpp: URI - an https link - the invite expiration time On the other hand, the `invite:create_contact(user_jid)` shell command returns: - an xmpp: URI and the `invite:create_reset(user_jid)` shell command returns: - an https link - the invite expiration time The `invite:create_contact` shell command should output an https link, and probably the invite expiration time too. And for consistency, the xmpp: URI should either be shown in both shell commands, or in neither one.
All three commands already prefer to return a URL if one is available. As Prosody does not come with an invitation page by default, whether a URL is available depends on the invitations page you are using and what it supports. Could you share what invitations page you are using? (the likely options are either mod_invites_page from community modules, or the new invites_page option in 13.0 which supports external providers such as https://xmpp.link
ChangesI'm using the mod_invites_page community module. I wasn't aware there was an alternative to it.
Note that `invite:create_account` and `invite:create_reset` both generate an https link (using mod_invites_page) but `invite:create_contact` doesn't.