summary refs log tree commit diff
path: root/synapse/federation/transport/server.py
diff options
context:
space:
mode:
authorOlivier Wilkinson (reivilibre) <olivier@librepush.net>2019-08-20 08:49:31 +0100
committerOlivier Wilkinson (reivilibre) <olivier@librepush.net>2019-08-20 08:49:31 +0100
commitbb29bc29374d10d151ebff13c4e95e07c0ef3a29 (patch)
treefc8f6007402c71084c6fd3a87b993fc6e2188fe4 /synapse/federation/transport/server.py
parentNewsfile (diff)
downloadsynapse-bb29bc29374d10d151ebff13c4e95e07c0ef3a29.tar.xz
Use MSC2197 on stable prefix as it has almost finished FCP
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
Diffstat (limited to 'synapse/federation/transport/server.py')
-rw-r--r--synapse/federation/transport/server.py26
1 files changed, 2 insertions, 24 deletions
diff --git a/synapse/federation/transport/server.py b/synapse/federation/transport/server.py
index e17555c4cf..027b33f67e 100644
--- a/synapse/federation/transport/server.py
+++ b/synapse/federation/transport/server.py
@@ -750,30 +750,8 @@ class PublicRoomList(BaseFederationServlet):
         )
         return 200, data
 
-
-class UnstablePublicRoomList(BaseFederationServlet):
-    """
-    Fetch the public room list for this server.
-
-    This API returns information in the same format as /publicRooms on the
-    client API, but will only ever include local public rooms and hence is
-    intended for consumption by other home servers.
-
-    This is the unstable-prefixed version which adds support for MSC2197, which
-    is still undergoing review.
-    """
-
-    PATH = "/publicRooms"
-    PREFIX = FEDERATION_UNSTABLE_PREFIX
-
-    def __init__(self, handler, authenticator, ratelimiter, server_name, allow_access):
-        super(UnstablePublicRoomList, self).__init__(
-            handler, authenticator, ratelimiter, server_name
-        )
-        self.allow_access = allow_access
-
-    # TODO(MSC2197): Move away from Unstable prefix and back to normal prefix
     async def on_POST(self, origin, content, query):
+        # This implements MSC2197 (Search Filtering over Federation)
         if not self.allow_access:
             raise FederationDeniedError(origin)
 
@@ -1373,7 +1351,7 @@ FEDERATION_SERVLET_CLASSES = (
 
 OPENID_SERVLET_CLASSES = (OpenIdUserInfo,)
 
-ROOM_LIST_CLASSES = (PublicRoomList, UnstablePublicRoomList)
+ROOM_LIST_CLASSES = (PublicRoomList,)
 
 GROUP_SERVER_SERVLET_CLASSES = (
     FederationGroupsProfileServlet,