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

Commit

Permalink
Pass the origin when calculating the spaces summary over GET. (#10079)
Browse files Browse the repository at this point in the history
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.)
  • Loading branch information
clokep authored May 27, 2021
1 parent 557635f commit 8e15c92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/10079.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix a bug introduced in v1.35.0rc1 when calling the spaces summary API via a GET request.
2 changes: 1 addition & 1 deletion synapse/federation/transport/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -1398,7 +1398,7 @@ async def on_GET(
)

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.
Expand Down

0 comments on commit 8e15c92

Please sign in to comment.