diff --git a/roles/custom/matrix-bridge-mautrix-bluesky/molecule/default/molecule.yml b/roles/custom/matrix-bridge-mautrix-bluesky/molecule/default/molecule.yml index 6eb9184b3..f0a335c5e 100644 --- a/roles/custom/matrix-bridge-mautrix-bluesky/molecule/default/molecule.yml +++ b/roles/custom/matrix-bridge-mautrix-bluesky/molecule/default/molecule.yml @@ -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 diff --git a/roles/custom/matrix-bridge-mautrix-bluesky/molecule/default/verify.yml b/roles/custom/matrix-bridge-mautrix-bluesky/molecule/default/verify.yml index 78c06aa41..07c88ed67 100644 --- a/roles/custom/matrix-bridge-mautrix-bluesky/molecule/default/verify.yml +++ b/roles/custom/matrix-bridge-mautrix-bluesky/molecule/default/verify.yml @@ -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' diff --git a/roles/custom/matrix-bridge-mautrix-bluesky/templates/config.yaml.j2 b/roles/custom/matrix-bridge-mautrix-bluesky/templates/config.yaml.j2 index 593ea6a4c..d804ecb48 100644 --- a/roles/custom/matrix-bridge-mautrix-bluesky/templates/config.yaml.j2 +++ b/roles/custom/matrix-bridge-mautrix-bluesky/templates/config.yaml.j2 @@ -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