Pass the origin when calculating the spaces summary over GET. (#10079)

Fixes a bug due to conflicting PRs which were merged. (One added a new caller to
a method, the other added a new parameter to the same method.)
This commit is contained in:
Patrick Cloke 2021-05-27 08:52:28 -04:00 committed by GitHub
parent 557635f69a
commit 8e15c92c2f
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/10079.bugfix Normal file
View File

@ -0,0 +1 @@
Fix a bug introduced in v1.35.0rc1 when calling the spaces summary API via a GET request.

View File

@ -1398,7 +1398,7 @@ class FederationSpaceSummaryServlet(BaseFederationServlet):
)
return 200, await self.handler.federation_space_summary(
room_id, suggested_only, max_rooms_per_space, exclude_rooms
origin, room_id, suggested_only, max_rooms_per_space, exclude_rooms
)
# TODO When switching to the stable endpoint, remove the POST handler.