0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-05-17 11:03:46 +02:00

Accept unprefixed form of MSC3981 recurse parameter (#16842)

Now that the MSC3981 has passed FCP
This commit is contained in:
David Baker 2024-02-06 09:48:39 +00:00 committed by GitHub
parent 871f51c270
commit 71ca199165
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

1
changelog.d/16842.misc Normal file
View file

@ -0,0 +1 @@
Add support for stabilised [MSC3981](https://github.com/matrix-org/matrix-spec-proposals/pull/3981) that adds a `recurse` parameter on the `/relations` API.

View file

@ -71,7 +71,7 @@ class RelationPaginationServlet(RestServlet):
self._store, request, default_limit=5, default_dir=Direction.BACKWARDS
)
if self._support_recurse:
recurse = parse_boolean(
recurse = parse_boolean(request, "recurse", default=False) or parse_boolean(
request, "org.matrix.msc3981.recurse", default=False
)
else: