Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 36af768

Browse files
authored
Fix fetching public rooms over federation (#12410)
Broke by #12364
1 parent 1a90c1e commit 36af768

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.d/12410.bugfix

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix a spec compliance issue where requests to the `/publicRooms` federation API would specify `limit` as a string.

synapse/federation/transport/client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ async def get_public_rooms(
509509
if third_party_instance_id:
510510
args["third_party_instance_id"] = (third_party_instance_id,)
511511
if limit:
512-
args["limit"] = [limit]
512+
args["limit"] = [str(limit)]
513513
if since_token:
514514
args["since"] = [since_token]
515515

0 commit comments

Comments
 (0)