mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Accept unprefixed form of MSC3981 recurse parameter (#16842)
Now that the MSC3981 has passed FCP
This commit is contained in:
parent
871f51c270
commit
71ca199165
1
changelog.d/16842.misc
Normal file
1
changelog.d/16842.misc
Normal 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.
|
@ -71,7 +71,7 @@ class RelationPaginationServlet(RestServlet):
|
|||||||
self._store, request, default_limit=5, default_dir=Direction.BACKWARDS
|
self._store, request, default_limit=5, default_dir=Direction.BACKWARDS
|
||||||
)
|
)
|
||||||
if self._support_recurse:
|
if self._support_recurse:
|
||||||
recurse = parse_boolean(
|
recurse = parse_boolean(request, "recurse", default=False) or parse_boolean(
|
||||||
request, "org.matrix.msc3981.recurse", default=False
|
request, "org.matrix.msc3981.recurse", default=False
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user