Skip to content
Snippets Groups Projects
Unverified Commit 71ca1991 authored by David Baker's avatar David Baker Committed by GitHub
Browse files

Accept unprefixed form of MSC3981 recurse parameter (#16842)

Now that the MSC3981 has passed FCP
parent 871f51c2
No related branches found
No related tags found
No related merge requests found
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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment