diff options
author | Andrew Morgan <andrew@amorgan.xyz> | 2020-02-26 12:12:33 +0000 |
---|---|---|
committer | Andrew Morgan <andrew@amorgan.xyz> | 2020-02-26 12:12:33 +0000 |
commit | 4ab5cf88a2b0a1bd9375ba479e5de3aab220c3c0 (patch) | |
tree | a38fa96963df86fe1b4f3693fd9479e3c091a59c /synapse/federation | |
parent | 1.4.0rc2 (diff) | |
parent | Land improved room list based on room stats (#6019) (diff) | |
download | synapse-4ab5cf88a2b0a1bd9375ba479e5de3aab220c3c0.tar.xz |
Land improved room list based on room stats (#6019)
Diffstat (limited to 'synapse/federation')
-rw-r--r-- | synapse/federation/transport/server.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/synapse/federation/transport/server.py b/synapse/federation/transport/server.py index 7f8a16e355..0f16f21c2d 100644 --- a/synapse/federation/transport/server.py +++ b/synapse/federation/transport/server.py @@ -765,6 +765,10 @@ class PublicRoomList(BaseFederationServlet): else: network_tuple = ThirdPartyInstanceID(None, None) + if limit == 0: + # zero is a special value which corresponds to no limit. + limit = None + data = await maybeDeferred( self.handler.get_local_public_room_list, limit, @@ -800,6 +804,10 @@ class PublicRoomList(BaseFederationServlet): if search_filter is None: logger.warning("Nonefilter") + if limit == 0: + # zero is a special value which corresponds to no limit. + limit = None + data = await self.handler.get_local_public_room_list( limit=limit, since_token=since_token, |