# HG changeset patch # User Kim Alvefur # Date 1643797370 -3600 # Node ID 09b8144051ea5b5252f0b952cf817e274622c26a # Parent f64d13d9b76b791415b3447e6a2d97ab40411864 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. diff -r f64d13d9b76b -r 09b8144051ea mod_invites_page/html/client.html --- 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 - - {inviter?

You have been invited to chat on {site_name} using XMPP, - a secure and decentralized messaging network.

} - {inviter&

You have been invited to chat with {inviter} on {site_name}, - part of the XMPP secure and decentralized messaging network.

} +

You have been invited to chat {inviter&with {inviter} }on {site_name}, + part of the XMPP secure and decentralized messaging network.

You can start chatting right away with {app.name}. Let's get started!

diff -r f64d13d9b76b -r 09b8144051ea mod_invites_page/html/invite.html --- a/mod_invites_page/html/invite.html Mon Jan 31 11:51:50 2022 +0100 +++ b/mod_invites_page/html/invite.html Wed Feb 02 11:22:50 2022 +0100 @@ -32,12 +32,9 @@ Scan with mobile device - - {inviter?

You have been invited to chat on {site_name} using XMPP, - a secure and decentralized messaging network.

} - {inviter&

You have been invited to chat with {inviter} on {site_name}, - part of the XMPP secure and decentralized messaging network.

} +

You have been invited to chat {inviter&with {inviter} }on {site_name}, + part of the XMPP secure and decentralized messaging network.

Get started