mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2026-09-02 05:53:14 +00:00
Fix Bluesky display-name template rendering
This commit is contained in:
@@ -49,6 +49,7 @@ provisioner:
|
||||
matrix_bridge_mautrix_bluesky_appservice_bot_username: molecule-blueskybot
|
||||
matrix_bridge_mautrix_bluesky_appservice_bot_displayname: Molecule Bluesky Bot
|
||||
matrix_bridge_mautrix_bluesky_appservice_bot_avatar: mxc://molecule.local/blueskyAvatarFixture
|
||||
matrix_bridge_mautrix_bluesky_network_displayname_template: "{% raw %}{{ .Username }}{% endraw %} via Molecule"
|
||||
matrix_bridge_mautrix_bluesky_bridge_command_prefix: "!molecule-bluesky"
|
||||
matrix_bridge_mautrix_bluesky_bridge_permissions:
|
||||
"*": relay
|
||||
|
||||
@@ -179,6 +179,7 @@
|
||||
- name: Assert the rendered configuration carries non-default bridge behavior
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- mautrix_bluesky_config.network.displayname_template == matrix_bridge_mautrix_bluesky_network_displayname_template
|
||||
- mautrix_bluesky_config.bridge.command_prefix == matrix_bridge_mautrix_bluesky_bridge_command_prefix
|
||||
- mautrix_bluesky_config.bridge.permissions['*'] == 'relay'
|
||||
- mautrix_bluesky_config.bridge.permissions[matrix_bridge_mautrix_bluesky_homeserver_domain] == 'admin'
|
||||
|
||||
@@ -7,10 +7,8 @@ network:
|
||||
get_proxy_url: null
|
||||
|
||||
# Displayname template for Bluesky users.
|
||||
# {% raw %}
|
||||
# {{ .DisplayName }} is replaced with the display name of the Bluesky user.
|
||||
# {{ .Username }} is replaced with the username of the Bluesky user.
|
||||
# {% endraw %}
|
||||
# {% raw %}{{ .DisplayName }}{% endraw %} is replaced with the display name of the Bluesky user.
|
||||
# {% raw %}{{ .Username }}{% endraw %} is replaced with the username of the Bluesky user.
|
||||
displayname_template: {{ matrix_bridge_mautrix_bluesky_network_displayname_template | to_json }}
|
||||
|
||||
# Maximum number of conversations to sync on startup
|
||||
|
||||
Reference in New Issue
Block a user