Mercurial > prosody-modules
diff mod_invites_page/html/client.html @ 4881:09b8144051ea
mod_invites_page: Fix templates including stray inviter name (thanks Menel)
The util.interpolation syntax `{var?placeholder}` appears to have been
intended as an if-not, but this syntax will always return either the
variable or the placeholder-template.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 02 Feb 2022 11:22:50 +0100 |
parents | 36795f773faf |
children | 8cd617c0b701 |
line wrap: on
line diff
--- a/mod_invites_page/html/client.html Mon Jan 31 11:51:50 2022 +0100 +++ b/mod_invites_page/html/client.html Wed Feb 02 11:22:50 2022 +0100 @@ -31,12 +31,9 @@ Scan with mobile device </button> </div> - - {inviter?<p>You have been invited to chat on {site_name} using XMPP, - a secure and decentralized messaging network.</p>} - {inviter&<p>You have been invited to chat with {inviter} on {site_name}, - part of the XMPP secure and decentralized messaging network.</p>} + <p>You have been invited to chat {inviter&with {inviter} }on {site_name}, + part of the XMPP secure and decentralized messaging network.</p> <p>You can start chatting right away with {app.name}. Let's get started!</p>