mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-08-03 20:44:11 -04:00
Support fetching the spaces summary via GET over federation. (#9947)
Per changes in MSC2946, the C-S and S-S APIs for spaces summary should use GET requests. Until this is stable, the POST endpoints still exist. This does not switch federation requests to use the GET version yet since it is newly added and already deployed servers might not support it. When switching to the stable endpoint we should switch to GET requests.
This commit is contained in:
parent
28c6841102
commit
f4833e0c06
4 changed files with 29 additions and 0 deletions
|
@ -995,6 +995,7 @@ class TransportLayerClient:
|
|||
returned per space
|
||||
exclude_rooms: a list of any rooms we can skip
|
||||
"""
|
||||
# TODO When switching to the stable endpoint, use GET instead of POST.
|
||||
path = _create_path(
|
||||
FEDERATION_UNSTABLE_PREFIX, "/org.matrix.msc2946/spaces/%s", room_id
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue