diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2022-10-14 07:16:50 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-14 07:16:50 -0400 |
commit | c3e4edb4d6ba33383bc056e3ff22b2d034d3e248 (patch) | |
tree | 1130f6fd038f3d3412d811a1bb2e6d53a424c203 /synapse/rest/client | |
parent | Properly invalidate get_thread_id cache. (#14163) (diff) | |
download | synapse-c3e4edb4d6ba33383bc056e3ff22b2d034d3e248.tar.xz |
Stabilize the threads API. (#14175)
Stabilize the threads API (MSC3856) by supporting (only) the v1 path for the endpoint. This also marks the API as safe for workers since it is a read-only API.
Diffstat (limited to 'synapse/rest/client')
-rw-r--r-- | synapse/rest/client/relations.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/synapse/rest/client/relations.py b/synapse/rest/client/relations.py index d1aa1947a5..9dd59196d9 100644 --- a/synapse/rest/client/relations.py +++ b/synapse/rest/client/relations.py @@ -82,11 +82,7 @@ class RelationPaginationServlet(RestServlet): class ThreadsServlet(RestServlet): - PATTERNS = ( - re.compile( - "^/_matrix/client/unstable/org.matrix.msc3856/rooms/(?P<room_id>[^/]*)/threads" - ), - ) + PATTERNS = (re.compile("^/_matrix/client/v1/rooms/(?P<room_id>[^/]*)/threads"),) def __init__(self, hs: "HomeServer"): super().__init__() @@ -126,5 +122,4 @@ class ThreadsServlet(RestServlet): def register_servlets(hs: "HomeServer", http_server: HttpServer) -> None: RelationPaginationServlet(hs).register(http_server) - if hs.config.experimental.msc3856_enabled: - ThreadsServlet(hs).register(http_server) + ThreadsServlet(hs).register(http_server) |