Fix fetching public rooms over federation (#12410)

Broke by #12364
pull/12412/head
Erik Johnston 2022-04-07 15:18:02 +01:00 committed by GitHub
parent 1a90c1e3af
commit 36af768c13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

1
changelog.d/12410.bugfix Normal file
View File

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

View File

@ -509,7 +509,7 @@ class TransportLayerClient:
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]