Merge pull request #314 from aaronraimist/well-known-client-no-identity

Remove identity server section from .well-known/matrix/client if there is no identity server
This commit is contained in:
Slavi Pantaleev 2019-11-21 11:59:46 +02:00 committed by GitHub
commit 4cc6cdf6f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,8 +2,10 @@
{ {
"m.homeserver": { "m.homeserver": {
"base_url": "{{ matrix_homeserver_url }}" "base_url": "{{ matrix_homeserver_url }}"
}, }
{% if matrix_identity_server_url %},
"m.identity_server": { "m.identity_server": {
"base_url": "{{ matrix_identity_server_url }}" "base_url": "{{ matrix_identity_server_url }}"
} }
{% endif %}
} }