Skip to content

Commit c399c6f

Browse files
committed
Extract mautrix-twitter's network.displayname_template configuration into a variable (matrix_mautrix_twitter_network_displayname_template)
1 parent 9e31a25 commit c399c6f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

roles/custom/matrix-bridge-mautrix-twitter/defaults/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ matrix_mautrix_twitter_msc4190_enabled: "{{ matrix_bridges_msc4190_enabled }}"
4444
# A public address that external services can use to reach this appservice.
4545
matrix_mautrix_twitter_appservice_public_address: ''
4646

47+
# Displayname template for Twitter users.
48+
# {{ .DisplayName }} is replaced with the display name of the Twitter user.
49+
# {{ .Username }} is replaced with the username of the Twitter user.
50+
matrix_mautrix_twitter_network_displayname_template: "{% raw %}{{ .DisplayName }}{% endraw %} (Twitter)"
51+
4752
matrix_mautrix_twitter_bridge_command_prefix: "!tw"
4853

4954
matrix_mautrix_twitter_bridge_permissions: |

roles/custom/matrix-bridge-mautrix-twitter/templates/config.yaml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ network:
1111
# {{ .DisplayName }} is replaced with the display name of the Twitter user.
1212
# {{ .Username }} is replaced with the username of the Twitter user.
1313
# {% endraw %}
14-
displayname_template: "{% raw %}{{ .DisplayName }}{% endraw %} (Twitter)"
14+
displayname_template: {{ matrix_mautrix_twitter_network_displayname_template | to_json }}
1515

1616
# Maximum number of conversations to sync on startup
1717
conversation_sync_limit: 20

0 commit comments

Comments
 (0)