Kaynağa Gözat

Extract mautrix-bluesky's `network.displayname_template` configuration into a variable (`matrix_mautrix_bluesky_network_displayname_template`)

pull/4403/head
Slavi Pantaleev 7 ay önce
ebeveyn
işleme
1ccb6c822a
2 değiştirilmiş dosya ile 6 ekleme ve 1 silme
  1. +5
    -0
      roles/custom/matrix-bridge-mautrix-bluesky/defaults/main.yml
  2. +1
    -1
      roles/custom/matrix-bridge-mautrix-bluesky/templates/config.yaml.j2

+ 5
- 0
roles/custom/matrix-bridge-mautrix-bluesky/defaults/main.yml Dosyayı Görüntüle

@@ -36,6 +36,11 @@ matrix_mautrix_bluesky_msc4190_enabled: "{{ matrix_bridges_msc4190_enabled }}"
# A public address that external services can use to reach this appservice. # A public address that external services can use to reach this appservice.
matrix_mautrix_bluesky_appservice_public_address: '' matrix_mautrix_bluesky_appservice_public_address: ''


# Displayname template for Bluesky users.
# {{ .DisplayName }} is replaced with the display name of the Bluesky user.
# {{ .Username }} is replaced with the username of the Bluesky user.
matrix_mautrix_bluesky_network_displayname_template: "{% raw %}{{ .DisplayName }}{% endraw %} (Bluesky)"

matrix_mautrix_bluesky_bridge_command_prefix: "!bs" matrix_mautrix_bluesky_bridge_command_prefix: "!bs"


matrix_mautrix_bluesky_bridge_permissions: | matrix_mautrix_bluesky_bridge_permissions: |


+ 1
- 1
roles/custom/matrix-bridge-mautrix-bluesky/templates/config.yaml.j2 Dosyayı Görüntüle

@@ -11,7 +11,7 @@ network:
# {{ .DisplayName }} is replaced with the display name of the Bluesky user. # {{ .DisplayName }} is replaced with the display name of the Bluesky user.
# {{ .Username }} is replaced with the username of the Bluesky user. # {{ .Username }} is replaced with the username of the Bluesky user.
# {% endraw %} # {% endraw %}
displayname_template: "{% raw %}{{ .DisplayName }}{% endraw %} (Bluesky)"
displayname_template: {{ matrix_mautrix_bluesky_network_displayname_template | to_json }}


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


Yükleniyor…
İptal
Kaydet