From 9ab68a3cb46693316a5d72f4537b258e95804366 Mon Sep 17 00:00:00 2001 From: Aaron Raimist Date: Wed, 20 Nov 2019 16:05:16 -0600 Subject: [PATCH] Remove identity server section from .well-known/matrix/client if there is no identity server Riot used to be fine with it being blank but now it complains. This creates an ugly looking comma when there is an identity server configured but I guess that's fine. --- .../templates/static-files/well-known/matrix-client.j2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/matrix-base/templates/static-files/well-known/matrix-client.j2 b/roles/matrix-base/templates/static-files/well-known/matrix-client.j2 index 120f9c97..4e93c2d8 100644 --- a/roles/matrix-base/templates/static-files/well-known/matrix-client.j2 +++ b/roles/matrix-base/templates/static-files/well-known/matrix-client.j2 @@ -2,8 +2,10 @@ { "m.homeserver": { "base_url": "{{ matrix_homeserver_url }}" - }, + } + {% if matrix_identity_server_url %}, "m.identity_server": { "base_url": "{{ matrix_identity_server_url }}" } + {% endif %} }