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

Commit

Permalink
Fix fetching public rooms over federation (#12410)
Browse files Browse the repository at this point in the history
Broke by #12364
  • Loading branch information
erikjohnston authored Apr 7, 2022
1 parent 1a90c1e commit 36af768
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/12410.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix a spec compliance issue where requests to the `/publicRooms` federation API would specify `limit` as a string.
2 changes: 1 addition & 1 deletion synapse/federation/transport/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ async def get_public_rooms(
if third_party_instance_id:
args["third_party_instance_id"] = (third_party_instance_id,)
if limit:
args["limit"] = [limit]
args["limit"] = [str(limit)]
if since_token:
args["since"] = [since_token]

Expand Down

0 comments on commit 36af768

Please sign in to comment.