mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-25 02:55:46 +03:00
Apply federation check for /publicRooms with filter list (#7367)
This commit is contained in:
parent
37f6823f5b
commit
9d8ecc9e6c
2 changed files with 6 additions and 1 deletions
1
changelog.d/7367.bugfix
Normal file
1
changelog.d/7367.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
Prevent non-federating rooms from appearing in responses to federated `POST /publicRoom` requests when a filter was included.
|
|
@ -90,7 +90,11 @@ class RoomListHandler(BaseHandler):
|
|||
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)
|
||||
|
|
Loading…
Reference in a new issue