Use |to_json

This commit is contained in:
Slavi Pantaleev 2022-06-17 15:30:22 +03:00 committed by GitHub
parent 5eff67371d
commit 5987589436
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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