From 544d25e8c35d78006f885ce6f69e25ad0e788c01 Mon Sep 17 00:00:00 2001 From: Benjamin Blacher Date: Fri, 17 Oct 2025 21:32:39 +0200 Subject: [PATCH] Fix Twitter displaynames --- roles/custom/matrix-bridge-mautrix-twitter/defaults/main.yml | 2 +- .../matrix-bridge-mautrix-twitter/templates/config.yaml.j2 | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/roles/custom/matrix-bridge-mautrix-twitter/defaults/main.yml b/roles/custom/matrix-bridge-mautrix-twitter/defaults/main.yml index 2d2c12edc..8c21ec4f9 100644 --- a/roles/custom/matrix-bridge-mautrix-twitter/defaults/main.yml +++ b/roles/custom/matrix-bridge-mautrix-twitter/defaults/main.yml @@ -50,7 +50,7 @@ matrix_mautrix_twitter_appservice_public_address: '' # Displayname template for Twitter users. # {{ .DisplayName }} is replaced with the display name of the Twitter user. # {{ .Username }} is replaced with the username of the Twitter user. -matrix_mautrix_twitter_network_displayname_template: "{% raw %}{{ .DisplayName }}{% endraw %} (Twitter)" +matrix_mautrix_twitter_network_displayname_template: "{% raw %}{{ .DisplayName }} (Twitter){% endraw %}" matrix_mautrix_twitter_bridge_command_prefix: "!tw" diff --git a/roles/custom/matrix-bridge-mautrix-twitter/templates/config.yaml.j2 b/roles/custom/matrix-bridge-mautrix-twitter/templates/config.yaml.j2 index 146043cbd..5c1e8d9c1 100644 --- a/roles/custom/matrix-bridge-mautrix-twitter/templates/config.yaml.j2 +++ b/roles/custom/matrix-bridge-mautrix-twitter/templates/config.yaml.j2 @@ -7,10 +7,6 @@ network: get_proxy_url: null # Displayname template for Twitter users. - # {% raw %} - # {{ .DisplayName }} is replaced with the display name of the Twitter user. - # {{ .Username }} is replaced with the username of the Twitter user. - # {% endraw %} displayname_template: {{ matrix_mautrix_twitter_network_displayname_template | to_json }} # Maximum number of conversations to sync on startup