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

Commit

Permalink
Fix a spec compliance issue where requests to the /publicRooms fede…
Browse files Browse the repository at this point in the history
…ration API would specify `limit` as a string. (#12364)
  • Loading branch information
reivilibre committed Apr 5, 2022
1 parent 708d88b commit 42d8710
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.d/12364.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.
4 changes: 2 additions & 2 deletions synapse/federation/transport/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ async def get_public_rooms(
if third_party_instance_id:
data["third_party_instance_id"] = third_party_instance_id
if limit:
data["limit"] = str(limit)
data["limit"] = limit
if since_token:
data["since"] = since_token

Expand Down 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"] = [str(limit)]
args["limit"] = [limit]
if since_token:
args["since"] = [since_token]

Expand Down

0 comments on commit 42d8710

Please sign in to comment.