Support the v1 endpoint for /relations. (#12403)

Now that MSC2675 has passed FCP and the implementation is
compliant with the final version.
This commit is contained in:
Patrick Cloke 2022-04-07 07:08:23 -04:00 committed by GitHub
parent 350062661c
commit 0bcb651b3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 12 deletions

View file

@ -35,7 +35,7 @@ class RelationPaginationServlet(RestServlet):
PATTERNS = client_patterns(
"/rooms/(?P<room_id>[^/]*)/relations/(?P<parent_id>[^/]*)"
"(/(?P<relation_type>[^/]*)(/(?P<event_type>[^/]*))?)?$",
releases=(),
releases=("v1",),
)
def __init__(self, hs: "HomeServer"):