Procházet zdrojové kódy

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.
pull/314/head
Aaron Raimist před 6 roky
rodič
revize
9ab68a3cb4
V databázi nebyl nalezen žádný známý klíč pro tento podpis ID GPG klíče: 37419210002890EF
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. +3
    -1
      roles/matrix-base/templates/static-files/well-known/matrix-client.j2

+ 3
- 1
roles/matrix-base/templates/static-files/well-known/matrix-client.j2 Zobrazit soubor

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

Načítá se…
Zrušit
Uložit