mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-22 01:25:44 +03: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
2 changed files with 2 additions and 1 deletions
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
|
||||
)
|
||||
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:
|
||||
|
|
Loading…
Reference in a new issue