From 7a83c2026cb085e16d0080557f4aec526df317d7 Mon Sep 17 00:00:00 2001 From: Pierre 'McFly' Marty Date: Thu, 14 Dec 2023 19:57:12 +0100 Subject: [PATCH] fix: escape jinja '.' --- .../matrix-bridge-mautrix-signalgo/templates/config.yaml.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/custom/matrix-bridge-mautrix-signalgo/templates/config.yaml.j2 b/roles/custom/matrix-bridge-mautrix-signalgo/templates/config.yaml.j2 index 7c0a6a52d..9859f8178 100644 --- a/roles/custom/matrix-bridge-mautrix-signalgo/templates/config.yaml.j2 +++ b/roles/custom/matrix-bridge-mautrix-signalgo/templates/config.yaml.j2 @@ -87,11 +87,11 @@ metrics: # Bridge config bridge: # Localpart template of MXIDs for Signal users. - # {{.}} is replaced with the internal ID of the Signal user. - username_template: signal_{{.}} + # {{ '{{.}}' }} is replaced with the internal ID of the Signal user. + username_template: "{{ 'signalgo_{{.}}' }}" # Displayname template for Signal users. This is also used as the room name in DMs if private_chat_portal_meta is enabled. # Available variables: TODO - displayname_template: '{{.ProfileName}} (Signalgo)' + displayname_template: "{{ '{{.ProfileName}} (Signalgo)' }}" # Whether to explicitly set the avatar and room name for private chat portal rooms. # If set to `default`, this will be enabled in encrypted rooms and disabled in unencrypted rooms. # If set to `always`, all DM rooms will have explicit names and avatars set.