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

Commit 8e15c92

Browse files
authored
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.)
1 parent 557635f commit 8e15c92

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.d/10079.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix a bug introduced in v1.35.0rc1 when calling the spaces summary API via a GET request.

synapse/federation/transport/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1398,7 +1398,7 @@ async def on_GET(
13981398
)
13991399

14001400
return 200, await self.handler.federation_space_summary(
1401-
room_id, suggested_only, max_rooms_per_space, exclude_rooms
1401+
origin, room_id, suggested_only, max_rooms_per_space, exclude_rooms
14021402
)
14031403

14041404
# TODO When switching to the stable endpoint, remove the POST handler.

0 commit comments

Comments
 (0)