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

Commit

Permalink
Apply federation check for /publicRooms with filter list (#7367)
Browse files Browse the repository at this point in the history
  • Loading branch information
anoadragon453 authored Apr 30, 2020
1 parent 37f6823 commit 9d8ecc9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/7367.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Prevent non-federating rooms from appearing in responses to federated `POST /publicRoom` requests when a filter was included.
6 changes: 5 additions & 1 deletion synapse/handlers/room_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ def get_local_public_room_list(
logger.info("Bypassing cache as search request.")

return self._get_public_room_list(
limit, since_token, search_filter, network_tuple=network_tuple
limit,
since_token,
search_filter,
network_tuple=network_tuple,
from_federation=from_federation,
)

key = (limit, since_token, network_tuple)
Expand Down

0 comments on commit 9d8ecc9

Please sign in to comment.