From 626a851c8267e49446fe29ae0bd624a8fcab3957 Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Tue, 17 Sep 2024 08:28:12 +0300 Subject: [PATCH] Fix username_template potentially not being taken into account for mautrix-slack While working on upgrading the Meta bridges to bridgev2, I've noticed that {% raw %} and {% endraw %} on lines like that (immediately preceding `username_template` may cause YAML indentation issues. --- .../matrix-bridge-mautrix-slack/templates/config.yaml.j2 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/roles/custom/matrix-bridge-mautrix-slack/templates/config.yaml.j2 b/roles/custom/matrix-bridge-mautrix-slack/templates/config.yaml.j2 index a0b860bf2..ed3b9c0c2 100644 --- a/roles/custom/matrix-bridge-mautrix-slack/templates/config.yaml.j2 +++ b/roles/custom/matrix-bridge-mautrix-slack/templates/config.yaml.j2 @@ -244,9 +244,7 @@ appservice: hs_token: {{ matrix_mautrix_slack_homeserver_token | to_json }} # Localpart template of MXIDs for remote users. - # {% raw %} - # {{.}} is replaced with the internal ID of the user. - # {% endraw %} + # {% raw %}{{.}}{% endraw %} is replaced with the internal ID of the user. username_template: "{% raw %}slack_{{.}}{% endraw %}" # Config options that affect the Matrix connector of the bridge.