Skip to content

Commit 1ccb6c8

Browse files
committed
Extract mautrix-bluesky's network.displayname_template configuration into a variable (matrix_mautrix_bluesky_network_displayname_template)
1 parent 1813c85 commit 1ccb6c8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ matrix_mautrix_bluesky_msc4190_enabled: "{{ matrix_bridges_msc4190_enabled }}"
3636
# A public address that external services can use to reach this appservice.
3737
matrix_mautrix_bluesky_appservice_public_address: ''
3838

39+
# Displayname template for Bluesky users.
40+
# {{ .DisplayName }} is replaced with the display name of the Bluesky user.
41+
# {{ .Username }} is replaced with the username of the Bluesky user.
42+
matrix_mautrix_bluesky_network_displayname_template: "{% raw %}{{ .DisplayName }}{% endraw %} (Bluesky)"
43+
3944
matrix_mautrix_bluesky_bridge_command_prefix: "!bs"
4045

4146
matrix_mautrix_bluesky_bridge_permissions: |

roles/custom/matrix-bridge-mautrix-bluesky/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 Bluesky user.
1212
# {{ .Username }} is replaced with the username of the Bluesky user.
1313
# {% endraw %}
14-
displayname_template: "{% raw %}{{ .DisplayName }}{% endraw %} (Bluesky)"
14+
displayname_template: {{ matrix_mautrix_bluesky_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)