瀏覽代碼

Use |to_json

pull/1884/head
Slavi Pantaleev 4 年之前
committed by GitHub
父節點
當前提交
5987589436
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      roles/matrix-synapse/templates/synapse/homeserver.yaml.j2

+ 2
- 2
roles/matrix-synapse/templates/synapse/homeserver.yaml.j2 查看文件

@@ -1050,10 +1050,10 @@ max_upload_size: "{{ matrix_synapse_max_upload_size_mb }}M"


media_retention: media_retention:
{% if matrix_synapse_media_retention_local_media_lifetime|length > 0 %} {% if matrix_synapse_media_retention_local_media_lifetime|length > 0 %}
local_media_lifetime: "{{ matrix_synapse_media_retention_local_media_lifetime }}"
local_media_lifetime: {{ matrix_synapse_media_retention_local_media_lifetime|to_json }}
{% endif %} {% endif %}
{% if matrix_synapse_media_retention_remote_media_lifetime|length > 0 %} {% if matrix_synapse_media_retention_remote_media_lifetime|length > 0 %}
remote_media_lifetime: "{{ matrix_synapse_media_retention_remote_media_lifetime }}"
remote_media_lifetime: {{ matrix_synapse_media_retention_remote_media_lifetime|to_json }}
{% endif %} {% endif %}


# Maximum number of pixels that will be thumbnailed # Maximum number of pixels that will be thumbnailed


Loading…
取消
儲存