Skip to content

Commit 6c90e71

Browse files
anoadragon453phil-flex
authored andcommitted
Apply federation check for /publicRooms with filter list (matrix-org#7367)
1 parent 63c56e2 commit 6c90e71

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

changelog.d/7367.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Prevent non-federating rooms from appearing in responses to federated `POST /publicRoom` requests when a filter was included.

synapse/handlers/room_list.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,11 @@ def get_local_public_room_list(
9090
logger.info("Bypassing cache as search request.")
9191

9292
return self._get_public_room_list(
93-
limit, since_token, search_filter, network_tuple=network_tuple
93+
limit,
94+
since_token,
95+
search_filter,
96+
network_tuple=network_tuple,
97+
from_federation=from_federation,
9498
)
9599

96100
key = (limit, since_token, network_tuple)

0 commit comments

Comments
 (0)